Copying files in windows is quite easy; just right click on the folder you want to copy, then select copy and then paste wherever you want it to be. However, you may have experienced that if copying stops due to some error, even the amount copyied upto that point can disappear. In that case you may want to use the command prompt for copying.
xcopy is a powerful version of the copy command with additional features; has the capability of moving files, directories, and even whole drives from one location to another.
To copy from folder1 to folder2, the syntax would be
xcopy "C:\folder1\*" "C:\folder2" /k /e /d
where
/k - Copies attributes. Normal xcopy will reset read-only attributes.
/e - Copies directories and sub directories, including empty ones.
/d[:mm-dd-yyyy] : Copies source files changed on or after the specified date only. If you do not include a mm-dd-yyyy value, xcopy copies all Source files that are newer than existing Destination files. This command-line option allows you to update files that have changed.
For additional parameter information you can have a look at here.
No comments:
Post a Comment