Computing.Net > Forums > Windows 2000 > xcopy batch file to copy to share and not overwrite same files

xcopy batch file to copy to share and not overwrite same files

Reply to Message Icon

Original Message
Name: Dan genn
Date: February 13, 2001 at 07:29:44 Pacific
Subject: xcopy batch file to copy to share and not overwrite same files
Comment:

I am looking for a way to xcopy files from one share to another using a batch file. I would like the copy to not prompt or overwrite files that are the same in the destination directory. Any help is appreciated thanks!


Report Offensive Message For Removal

Response Number 1
Name: Bret
Date: February 13, 2001 at 11:03:02 Pacific
Subject: xcopy batch file to copy to share and not overwrite same files
Reply: (edit)

Don't use XCOPY. There is a little known utility from the DOS days called replace. Replace lets you only copy files that aren't there, or update files with a newer date. Go to a cmd prompt and type replace /? to see the usage.


Report Offensive Follow Up For Removal

Response Number 2
Name: perry
Date: February 13, 2001 at 14:40:31 Pacific
Subject: xcopy batch file to copy to share and not overwrite same files
Reply: (edit)

or if you have the Resource Kit use Robocopy. Type robocopy /??? for information at a CMD prompt.



Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: xcopy batch file to copy to share and not overwrite same files

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software