usually, when we want to copy files from source to destination and when the destination has got same files as that of source then the DOS command prompts the user with overwrite (Yes/no/all)options.
When we say "a" it overwrites all the files in the destination files if they are same files as that of source.
In order to save some time when you copy large amount of files. Here is the option...
Create a txt file(let's say n.txt) with a single line of all "n"(nnnnnnn) then run the batch files with the following content...
xcopy Test1 Test2 < n.txt
Another option would be to use Robocopy.exe. This would only copy the files which has got different size and timestamp.
robocopy test1 test2.
No comments:
Post a Comment