for %%f in (%1\*.nc) do ncdf2hdf %%f