xcopy command

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am using the xcopy command to back up files from client workstations
(Win XP, sevice pack 2) to my server (2003). I am incorporating the xcopy
command in a batch file which runs automatically via scheduled tasks. In all
my machines the command works without problem and I am not prompted with a
question as to whether or not I want to overwrite existing files. I do not
need to use the /y switch and do not need to set copycmd.
However, one of my client machines was freezing so I reloaded all the
software (including XP) from the restore disks provided by Dell. On this
machine the xcopy command now prompts me for files that need to overwritten.
The xcopy files are the same version. Does anyone have any suggestions as to
why this is happening? (I know I can get around the problem using /y or
setting the copycmd variable to /y, but I'd like to know why one machine
prompts me and the other does not when both xcopy commands are in a batch
file? Thanks.
 
The bottom of the output from XCOPY /? says:

"The switch /Y may be preset in the COPYCMD environment variable."

Your latest machine may have this differently set from the rest.
 
Back
Top