The MS-DOS Command – xcopy


When copying a lot of files from one location to another on Windows, using Windows Explorer is slow. A much faster solution is to use the xcopy MS-DOS command. It works beautifully, and has saved me a lot of time. The syntax is as follows:

C:\xcopy source destination switches

The switches are:

    • /a:

    Copies files with the archive attribute set. This switch does not change the attribute.

    • /m:

    Copies files with the archive attribute set, and turns off the archive attribute.

    • /d:date:

    Copies files changed on or after the specified date.

    • /p:

    Prompts you before creating each destination file.

    • /s:

    Copies folders and subfolders except empty ones.

    • /e:

    Copies any subfolder, even if it is empty.

    • /v:

    Verifies each new file.

    • /w:

    Prompts you to press a key before copying.

Original Source: Switches That You Can Use with Xcopy and Xcopy32 Commands

Advertisements