I have following in a cmd batch file:
for /f %%l in (%2) do (for %%f in (%%l) do copy \"%%f\" %1))
note : this script basically does is rea
If you need to substitute several parameters in one string, just use "for /f" to set variable with previous substitution like this:
SET "output1=%1"
CALL SET output1=%%output1:%3=%4%%
for /f "tokens=1" %%a in ('echo %output1%') do set output2=%%a
CALL SET output2=%%output2:%5%6%
for /f "tokens=1" %%a in ('echo %output2') do set output3=%%a