Xcopy: Difference between revisions

From OS2World.Com Wiki
Jump to navigation Jump to search
No edit summary
Jugbogdan (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
xcopy is a copy command used in the OS/2 command line.  
xcopy is a copy command used in the OS/2 command line.


==Syntax==
==Syntax==
 
XCOPY [drive:][path] filename [drive:][path] filename [/D:date] [/S][/E][/P][/V][/A or /M][/H][/T][/R][/O][/F]
  XCOPY [drive:][path] filename [drive:][path] filename [/D:date] [/S][/E][/P][/V][/A or /M][/H][/T][/R][/O][/F]


where:
where:
Line 9: Line 8:
:Specifies the location of the file to copy.
:Specifies the location of the file to copy.


'''drive:\path\filename'''
'''drive:\path\filename'''
:Specifies the target destination and file name.
:Specifies the target destination and file name.


'''/D:date'''              
'''/D:date'''
:Copies files changed on or after the specified date.
:Copies files changed on or after the specified date.
;/S                  
;/S:Copies non-empty directories and subdirectories.
:Copies non-empty directories and subdirectories.
;/E:When used with /S, includes empty directories.
;/E                  
;/P:Prompts you before performing a copy.
:When used with /S, includes empty directories.
;/V:Verifies files copied to disk correctly.
;/P                  
;/A:Copies archived files only, but does not turn off the attribute bit of the source file.
:Prompts you before performing a copy.
;/M:Copies archived files only and turns off the attribute bit of the source file.
;/V                  
;/H:Copies hidden files and attributes to the destination.
:Verifies files copied to disk correctly.
;/T:Copies system files and attributes to the destination.
;/A                  
;/R:Copies read-only files and attributes to the destination.
:Copies archived files only, but does not turn off the attribute bit of the source file.
;/O:Specifies that any files in the destination can be overwritten by the copy operation.
;/M                  
;/F:Causes XCOPY to fail if the file to be copied contains extended attributes that are not supported by the destination file system.
: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==
==Samples==
Copy files from e:\ to c:\ with several options to include hidden files, empty folder, etc. Very useful if you copy the all the operating system files to a different disk.  
Copy files from e:\ to c:\ with several options to include hidden files, empty folder, etc. Very useful if you copy the all the operating system files to a different disk.  
  xcopy c:\  e:\ /h/o/t/s/e/r/v
  xcopy c:\  e:\ /h/o/t/s/e/r/v
==Versions==
{|class="wikitable"
!Date||Version||Size||Comments
|-
|2002-03-11|| ||52,576 bytes||Version included on ArcaOS 5.0.6
|}
[[Category:Files]]

Latest revision as of 22:44, 11 July 2023

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

Syntax

XCOPY [drive:][path] filename [drive:][path] filename [/D:date] [/S][/E][/P][/V][/A or /M][/H][/T][/R][/O][/F]

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

Copy files from e:\ to c:\ with several options to include hidden files, empty folder, etc. Very useful if you copy the all the operating system files to a different disk.

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

Versions

Date Version Size Comments
2002-03-11 52,576 bytes Version included on ArcaOS 5.0.6