xcopy command

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.
 
S

Sam Low

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.
 

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

Similar Threads

xcopy batch 8
Xcopy behavior questions 52
XCOPY options 16
DOS Xcopy 3
Errorlevel -1073741819 from XCOPY 1
xcopy exclude switch 2
XCOPY deployment -- security failure: "File creation error..." 6
xcopy exclude problem 4

Top