"Bikini Browser" <(E-Mail Removed)> wrote in message
news:uW4lHU$(E-Mail Removed)...
> Hi and Merry Christmas Everyone!
>
> I am trying to write a DOS batch file that will backup my C: Drive to my
> P: Drive. and I want to include all the folders in my source directory.
>
> How do you include subfolders to be backed up too? I used to know this,
> but it seems that the DOS Command is not valid anymore.
>
> It basiclly looks like this...
> @Echo off
> net use P: \\Computer-name\PeachTree
> c:
> cd\
> cd "Documents and settings\UserName\my documents"
> copy *.* P:
>
> Long ago, I think I used to use a "/s" switch, but that does not seem to
> work anymore.
"copy" never had the "/s" switch but "xcopy.exe" does. However,
robocopy /s would be a more reliable option, as suggested by Lanwench.
|