Xcopy+DOS

Xcopy DOS

To copy files from one drive to another can be a lengthy process that is if you are not using the DOS facility called XCOPY

You can copy new files into a folder using the xcopy command which has the /d option, this lets you specify the date.

As an example suppose you wanted to copy the files of photos ( This is if they are labeled Photos ) created after 10/09/2010 to a folder in C drive from your D drive.

There can be many of such files to copy. By using the xcopy command, you can achieve the task in one shot. The syntax for the xcopy command is:-

xcopy /d:date

So the syntax would be:- C:\xcopy D:\photos C:\ photostore /d:10-09-2010

These were created on or after 10/09/2010. If the files you are trying copy already exist in the destination folder, you will be prompted to overwrite the file in the source directory.

Note DOS, does not accept spaces in directory or folder names Therefore, the xcopy command does not support them. You will get an error message.

To learn more on Xcopy Type after the root Help Xcopy There is a full description of each alphabetical option e.g. /a to /z  