Hi,
I'm a bit rusty with my cmd line batches and just wanted to get some feedback on a batch.
@echo off
echo *
echo Copying Software Program Files.... Please wait
xcopy \\myserver\Software c:\ProgramX /d /u /y /I>c:\ProgramX\xcopy.out
I want to add functionality where it will;
- contact myserver on login and determine it has the most up to date version of the files (.exes) in the ProgramX folder
- if the files have been deleted/never existed, replace them
- it needs to run as a login script so I would prefer it didnt do anything unnecessary like overwrite anything unchanged etc.
I guess I want some feedback (before I give this to my boss) on whether I can improve on this batch or maybe I should be using Robocopy?
Thanks guys
Login Batch
Moderator: DosItHelp
Re: Login Batch
The /U option is incompatible with (opposite of) your requirement:
Dave Benham
- if the files have been deleted/never existed, replace them
Dave Benham