reverse xcopy

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hi, I'm looking for a batch/script to schedule that compares multiple
matching source and destination folders (plus subfolders and wildcards) and
deletes any files/folders from the destination that do not exist in source.
 
Mike said:
Hi, I'm looking for a batch/script to schedule that compares multiple
matching source and destination folders (plus subfolders and wildcards) and
deletes any files/folders from the destination that do not exist in source.

xxcopy.exe is your friend. The /z switch will probably do what
you want. Use Google to find a download server.
 
You also have robocopy from the Windows 2000 / 2003 Resource Kit (switch
/MIR)

Luis Arnauth
 
The latest version of robocopy will do nice also. It can be found in the XP
& Windows 2003 resource kit.

Look into the /MIR option
 
Hi, I'm looking for a batch/script to schedule that compares multiple
matching source and destination folders (plus subfolders and wildcards) and
deletes any files/folders from the destination that do not exist in source.

You can download RoboCopy from the link at tip 6705 » What are the free Windows Server 2003 Resource Kit tools?
in the 'Tips & Tricks' at http://www.jsifaq.com

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
I highly recommend RoboCopy. Not only can you do /MIR (and incremental
copies), but Robocopy contains built in commands to run the copy at any time.
Just make sure you download the Robcopy guide off of Microsoft.com. The
help file on the server is FAR from complete.
 
Back
Top