Page 1 of 1
Xcopy switch help
Posted: 09 Apr 2017 07:33
by falcios
Xcopy seems to be copying all the files within a folder when only a file is created and no other files have changed.
Command line I'm using:
xcopy c:\users\user\test e:\test /s /d /e /y /v
Is there a switch to truly copy only source files that have changed, or a switch that I should remove?
Thanks
Re: Xcopy switch help
Posted: 09 Apr 2017 08:25
by aGerman
Rather use ROBOCOPY. It ignores unchanged files by default.
Steffen
Re: Xcopy switch help
Posted: 09 Apr 2017 11:38
by Samir
Check the dates and times on the two systems involved and make sure they are in sync.
Also, what are the two file systems involved? There are some time/date nuances between FAT and NTFS.
Re: Xcopy switch help
Posted: 09 Apr 2017 17:06
by igor_andreev
falcios wrote:xcopy c:\users\user\test e:\test /s /d /e /y /v
Is there a switch to truly copy only source files that have changed, or a switch that I should remove?
Try changing /d to /m
The first time xcopy copies all files, while the next times, it only copies new or changed files
Re: Xcopy switch help
Posted: 10 Apr 2017 12:25
by Samir
igor_andreev wrote:falcios wrote:xcopy c:\users\user\test e:\test /s /d /e /y /v
Is there a switch to truly copy only source files that have changed, or a switch that I should remove?
Try changing /d to /m
The first time xcopy copies all files, while the next times, it only copies new or changed files
But the problem with this is that it modifies the attributes of the source files. And it doesn't solve the issue as to why /d isn't working as it should be.