for %%F in (%1\*.nwc) do call :DoIt %%F %2 goto :EOF :DoIt echo %1 %2 goto :EOF