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
Xcopy switch help
Moderator: DosItHelp
Re: Xcopy switch help
Rather use ROBOCOPY. It ignores unchanged files by default.
Steffen
Steffen
Re: Xcopy switch help
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.
Also, what are the two file systems involved? There are some time/date nuances between FAT and NTFS.
-
- Posts: 16
- Joined: 25 Feb 2017 12:55
- Location: Russia
Re: Xcopy switch help
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
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.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