Why doesn't xcopy detect changed files in W7

March 28, 2011 at 16:07:52
Specs: Windows 7
I use a batch file with an xcopy command to copy any updated files from one computer to another:
xcopy "\\hpc11\data" "\\HPR09\data" /s /d /y /i /c /r

This has worked perfectly in both XP and Vista. It appeared to work perfectly in Windows 7 until a few weeks ago. I've edited and saved a Word file on the first computer (hpc11 in the above example), executed the batch file, and it reports "0 files copied".
When I update some other files (eg excel files), they get copied.
Any assistance will be greatly appreciated.
Thanks,
Rob


See More: Why doesnt xcopy detect changed files in W7

Report •

#1
March 28, 2011 at 16:10:55
/a is for coping files when the archive bit changes. You are missing that switch.

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's


Report •

#2
March 28, 2011 at 16:26:09
Hi, Wanderer,
Thanks, but adding /a didn't help. Same problem.
Any other thoughts?
Rob

Report •

#3
March 28, 2011 at 16:35:22
did you check with attrib to see if the archive bit was set?

in your case /m would be the better choice since it turns down the archive bit.

to test go to a file and do attribe filename to see what is set. If a flag is set do an attrib -a filename to turn it off.
edit the file and save it
check with attrib. is the a flag up? should be

then run your script using the /m switch. This should result in turning down the a flag when done. check it with attrib

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's


Report •
Related Solutions


Ask Question