Originally posted by: CTho9305
xcopy /?
...
...
/U Copies only files that already exist in destination.
/K Copies attributes. Normal Xcopy will reset read-only attributes.
/N Copies using the generated short names.
/O Copies file ownership and ACL information.
/X Copies file audit settings (implies /O).
/Y Suppresses prompting to confirm you want to overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to overwrite an
existing destination file.
...
...
Thanks a ton for this. Does the /S switch do anything or does xcopy copy subdirectories by default?
Edit: Something crazy's happening. Somehow it's not getting all the files. I haven't gotten to the bottom of it. There's some files in one subfolder that are not getting copied with this command:
Xcopy e:\fox\dj /S /Y N:\fox\dj
That is to say (for instance):
There's a file E:\Fox\DJ\Programs\test.txt
After running the batch file that includes the above command, there is no N:\Fox\DJ\Programs\test.txt
Why?
I can see the batch file running, and evidently some of the E:\Fox\DJ\Programs\ files are being copied.
Edit2: So, I decide to do an experiment. I rename the folder N:\fox\dj\programs to N:\fox\dj\programs-tail
I rerun the batch file and this time all the files I expect to find in N:\fox\dj\programs are there! Please, please someone explain. Am I losing my mind? This is ludicrous. BTW, I'm running Windows 2000 SP4... I need a backup solution that I have confidence in. I used to just copy/paste directories in Windows Explorer, and sure that works, but it would be a lot easier to just run a batch file periodically. Of course, there's important files not being copied. I'm talking about files that have changed, been updated since last copied to the N: partition. Also, that test.txt file wasn't copied at all.
