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