Xcopy: Difference between revisions

From OS2World.Com Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


where:
where:
;drive:\path\filename
:'''drive:\path\filename'''
:Specifies the location of the file to copy.
:Specifies the location of the file to copy.
drive:\path\filename  Specifies the target destination and file name.
 
:'''drive:\path\filename'''  
:Specifies the target destination and file name.
   /D:date              Copies files changed on or after the specified date.
   /D:date              Copies files changed on or after the specified date.
  /S                    Copies non-empty directories and subdirectories.
;/S                     
  /E                    When used with /S, includes empty directories.
:Copies non-empty directories and subdirectories.
;/E                     
:When used with /S, includes empty directories.
   /P                    Prompts you before performing a copy.
   /P                    Prompts you before performing a copy.
   /V                    Verifies files copied to disk correctly.
   /V                    Verifies files copied to disk correctly.
   /A                    Copies archived files only, but does not turn
   /A                    Copies archived files only, but does not turn off the attribute bit of the source file.
                        off the attribute bit of the source file.
   /M                    Copies archived files only and turns off the attribute bit of the source file.
   /M                    Copies archived files only and turns off the
                        attribute bit of the source file.
   /H                    Copies hidden files and attributes to the destination.
   /H                    Copies hidden files and attributes to the destination.
   /T                    Copies system files and attributes to the destination.
   /T                    Copies system files and attributes to the destination.
   /R                    Copies read-only files and attributes to the
   /R                    Copies read-only files and attributes to the destination.
destination.
   /O                    Specifies that any files in the destination can be overwritten by the copy operation.
   /O                    Specifies that any files in the
   /F                    Causes XCOPY to fail if the file to be copied contains extended attributes that are not supported by the destination file system.
destination can be
                        overwritten by the copy operation.
   /F                    Causes XCOPY to fail if the file to be copied
                        contains extended attributes that are not
                        supported by the destination file system.





Revision as of 19:30, 12 January 2021

xcopy is a copy command used in the OS/2 command line.

Syntax

where:

drive:\path\filename
Specifies the location of the file to copy.
drive:\path\filename
Specifies the target destination and file name.
 /D:date               Copies files changed on or after the specified date.
/S
Copies non-empty directories and subdirectories.
/E
When used with /S, includes empty directories.
 /P                    Prompts you before performing a copy.
 /V                    Verifies files copied to disk correctly.
 /A                    Copies archived files only, but does not turn off the attribute bit of the source file.
 /M                    Copies archived files only and turns off the attribute bit of the source file.
 /H                    Copies hidden files and attributes to the destination.
 /T                    Copies system files and attributes to the destination.
 /R                    Copies read-only files and attributes to the destination.
 /O                    Specifies that any files in the destination can be overwritten by the copy operation.
 /F                    Causes XCOPY to fail if the file to be copied contains extended attributes that are not supported by the destination file system.


Samples

xcopy c:\   e:\ /h/o/t/s/e/r/v