J
John
Flightless Bird
How do I construct a FOR loop or other batch command loop that will copy a
list of files File1, File2,...,Filen from C: to D:. I know something like
the code below will do it, but this is a lot of redundant code. I'd like to
be able to just add the file name to a list at the start of the batch file
and not have to mess w/ the rest of the batch file code.
set a1=File1
set a2=File2
....
set an=Filen
copy C%a1% d%a1%
copy C%a2% d%a2%
....
copy C%an% d%an%
I appreciate your help, -John
list of files File1, File2,...,Filen from C: to D:. I know something like
the code below will do it, but this is a lot of redundant code. I'd like to
be able to just add the file name to a list at the start of the batch file
and not have to mess w/ the rest of the batch file code.
set a1=File1
set a2=File2
....
set an=Filen
copy C%a1% d%a1%
copy C%a2% d%a2%
....
copy C%an% d%an%
I appreciate your help, -John