Discussion Locked

XCOPY Batch File

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello. I work for a non-profit charity organization that has no servers; rather is using a Microsoft peer-to-peer network. Moving forward in small steps, I am now using an XP machine to be the "server." At present, we have no external backup device, so I have to manually copy (UGH) certain key files and directories to another quiet workstation that has little user intervention (the print "server") so at least the files/docs will be in 2 places instead of only one should I be so unfortunate as to lose my data.

What I'd like to do is use a batch file to automate the process, but I'm a little uncertain as to what syntax to use:

a) In order to copy from \\mycomputer\directory\file to \\thatcomputer\directory\file [using UNC]

b) To allow the destination files be overwritten without user intervention -- to answer Y or N automatically, and lastly

c) To set up an automated process to run this batch file after hours.

Thanks!

1 reply

by swill57

Assuming your peer network is happy (everyone can see everyone else) you can use UNC's with XCOPY or ROBOCOPY. ROBOCOPY isvery nice since you can tell it to copy only changed files, or do a complete MIRROR.

Just be careful about doing a mirror!! This will irrevocably overwrite files, so be careful.

ROBOCOPY can be found in the Res Kit (I think).

This discussion is closed to new replies.