"Kostas K." <(E-Mail Removed)> writes:
>I want to use xcopy to copy a few folders from one drive to to another
>folder on another drive for backup purposes. Could somebody tell me how to
>do it with a single xcopy statement?
>e.g. instead of writing:
>xcopy c:\1 d:\
>xcopy c:\2 d:\
>xcopy c:\3 d:\
>write something like that (the following does not work)
>xcopy c:\1+c:\2+c:\3 d:\
It can't be done with a single XCOPY command, but if you simply
save your block of commands as a text file and name it with a .BAT
extension (e.g., BACKUP.BAT), then run BACKUP as a command, the batch file
will automatically execute your XCOPY commands in sequence.
--Donald Davis
--
--Donald Davis
[To respond by e-mail, remove "blackhole." from the address.]
|