J
John
I want the my bacthfile code to produce (including the spaces):
copy /y "c:\this dir\this file.txt" d:
copy /y "c:\next dir\next file.txt" d:
copy /y "c:\last dir\last file.txt" d:
Instead, I just get code with the set var names;
copy /y "c:\x1" d:
copy /y "c:\x2" d:
copy /y "c:\x3" d:
How do I correct my "c:\x%%a" substitution syntax in the following code to
produce the correct copy stmt?
@echo off
set x1=c:\this dir\this file.txt
set x2=c:\next dir\next file.txt
set x3=c:\last dir\last file.txt
for /L %%a in (1,1,3) do (
echo copy /y "c:\x%%a" d:
)
I appreciate your help, -John
copy /y "c:\this dir\this file.txt" d:
copy /y "c:\next dir\next file.txt" d:
copy /y "c:\last dir\last file.txt" d:
Instead, I just get code with the set var names;
copy /y "c:\x1" d:
copy /y "c:\x2" d:
copy /y "c:\x3" d:
How do I correct my "c:\x%%a" substitution syntax in the following code to
produce the correct copy stmt?
@echo off
set x1=c:\this dir\this file.txt
set x2=c:\next dir\next file.txt
set x3=c:\last dir\last file.txt
for /L %%a in (1,1,3) do (
echo copy /y "c:\x%%a" d:
)
I appreciate your help, -John