< Day Day Up > |
Using XCOPY / XCOPY32The XCOPY command can be used in place of COPY in most cases and has the following advantages:
If XCOPY is run from a command-prompt window (the Windows 9x/Me GUI is active), many additional options are available because XCOPY will launch XCOPY32 . The following XCOPY options apply when the Windows 9x/Me GUI is not active (for example, when you boot directly to a command prompt with an EBD): A:\XCOPY.EXE/? Copies files (except hidden and system files) and directory trees. XCOPY source [destination] [/A /M] [/D:date] [/P] [/S [/E]] [/V] [/W] source Specifies the file(s) to copy. destination Specifies the location and/or name of new files. /A Copies files with the archive attribute set, doesn't change the attribute. /M Copies files with the archive attribute set, 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 directories and subdirectories except empty ones. /E Copies any subdirectories, even if empty. /V Verifies each new file. /W Prompts you to press a key before copying. Here are some examples:
When XCOPY is run within the Windows 9x/Me GUI, it launches XCOPY32 . The following are XCOPY32 's options: C:\Windows\Desktop>XCOPY32/? Copies files and directory trees. XCOPY source [destination] [/A /M] [/D[:date]] [/P] [/S [/E]] [/W] [/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U] [/K] [/N] source Specifies the file(s) to copy. destination Specifies the location and/or name of new files. /A Copies files with the archive attribute set, doesn't change the attribute. /M Copies files with the archive attribute set, turns off the archive attribute. /D:date Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time. /P Prompts you before creating each destination file. /S Copies directories and subdirectories except empty ones. /E Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T. /W Prompts you to press a key before copying. /C Continues copying even if errors occur. /I If destination does not exist and copying more than one file, assumes that destination must be a directory. /Q Does not display filenames while copying. /F Displays full source and destination filenames while copying. /L Displays files that would be copied. /H Copies hidden and system files also. /R Overwrites read-only files. /T Creates directory structure, but does not copy files. Does not include empty directories or subdirectories. /T /E includes empty directories and subdirectories. /U Updates the files that already exist in destination. /K Copies attributes. Normal XCOPY will reset read-only attributes. /Y Overwrites existing files without prompting. /-Y Prompts you before overwriting existing files. /N Copy using the generated short names. The options for Windows NT/2000/XP's XCOPY are identical to those used for Windows 9x's XCOPY32 , and the following options also apply:
In Windows 9x/Me, XCOPY32 has the following advantages over XCOPY :
XCOPY32 can be used to "clone" an entire drive's contents to another drive. For example, the following copies the entire contents of C: drive to D: drive: XCOPY32 C:\. D:\ /H /S /E /K /C /R |
< Day Day Up > |