Create a batch file to copy

Can someone please advise me using Windows XP Pro on drive C and should be able to copy a file from one drive to another. The original of this case should be renamed, and the old file should be placed in another Partiton, which is located on the disk of the Example server. Alternatively. There is another option using Windows 7 on a different computer instead of Windows XP Pro. Therefore any responses were appreciated.

0


a source to share


5 answers


If your permissions are configured to allow copying, you can use " UNC " paths to copy files across servers and drives.



As Noah said, check out ROBOCOPY or the slightly less recognized XCOPY .

+2


a source


XCOPY command:

xcopy c:\sourceDirectory\*.* d:\destinationDirectory\*.* /D /E /C /R /Y

      

ROBOCOPY command:



robocopy c:\sourceDirectory\*.* d:\destinationDirectory\*.* /R:5 /W:3 /Z /XX /TEE

      

Any of these should work for you

+2


a source


Have you looked into robocopy?

+1


a source


A quick look at my old DOS book that I saved just in case I need to make batch files says COPY is the correct command.
Syntax:

COPY DRIVE: FILENAME DRIVE: FILENAME
THIS COPY

+1


a source


Enter copy /?

or xcopy /?

to see the available options. If you add >file.txt

, you get them in a text file.

+1


a source







All Articles