Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Copying drives in dos

  • 02-04-2003 8:31pm
    #1
    Registered Users, Registered Users 2 Posts: 3,301 ✭✭✭


    anyone know the dos command to copy one drive to another?


Comments

  • Registered Users, Registered Users 2 Posts: 2,088 ✭✭✭BioHazRd


    XCOPY [d:][path]filename [d:][path][filename] [/A][/D:(date)] [/E][/M][/P]
    [/S][/V][/W][Y|-Y]


    /A - Copies only files that have been set as archive files (using the ATTRIB command). The copied files will still be marked as archive files in BOTH the source and destination files.

    /D:(date) - Copies only those files in the source directory that have been changed on or LATER than the specified date.

    /S - Copies all files in the current directory and in any subdirectory within it.

    /E - Copies subdirectories, even if they are empty. If you use this option, you must use the /S option also.

    /M - Copies the same marked archive files as specified in the /A option; however, the files on the destination disk are no longer marked as archive files. This switch checks the archive attribute of a file: if the file`s archive attribute is set to off (-A), the file will not be copied.

    /P - Does not copy the file until you respond to a prompt that asks you to confirm that you want the file copied. However, if you are using the /E option, you will not be prompted before an empty subdirectory is copied.

    /V - Each file copied is verified to be sure the file stored on the destination disk is identical to the original on the source disk.

    /W - Copies only after you respond to a prompt to begin copying (if this option is omitted, the copying begins as soon as you enter the XCOPY command and press the Enter key).

    /Y - Causes XCOPY to replace existing files without a confirmation prompt.

    /-Y - Causes XCOPY to give you a confirmation prompt before replacing an existing file.
    Hope that's what you are looking for

    Bio


  • Registered Users, Registered Users 2 Posts: 3,301 ✭✭✭irishguy


    great thanx


Advertisement