Batch file to copy latest version

  • Thread starter Thread starter Debbie Davis
  • Start date Start date
D

Debbie Davis

Greetings! I need to write a batch file that will, on start-up, go
out to the server and see if there is a later version of a certain
file. I have 9 users and it's a pain to have to copy each file to
every workstation each time I make a change. I have COMPLETELY
FORGOTTEN HOW TO DO THIS. I'm totally blank. If anyone can help and
point me in the right direction, I'd certainly appreciate it! Many
thanks in advance.
 
try this out - with modifications obviously.

XCopy c:\SmyStuff\Favorites c:\Favorites1 /d /e /y

such as "\\Otherserver\drivewhatnot\blahblah*.*
\\myserver\ "

I used to do this a lot, there may be some syntax errors,
but, it should be pretty close.

bob.
 
Thanks, Bob.

xcopy "\\otherserver\folder\database.mdb" c:
This works but I need it to compare the date/timestamp and only copy it if it's newer on the server. What parameter would I use for that? Thanks again.
 
debbie said:
Thanks, Bob.

xcopy "\\otherserver\folder\database.mdb" c:
This works but I need it to compare the date/timestamp and only copy it if it's newer on the server. What parameter would I use for that? Thanks again.

Look at the ouptut of "xcopy /?" to get the options for this command.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top