The xcopy command is used to copy one or more files and/or folders from one location to another location.
SYNTAX:XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] [/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U] [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z][/EXCLUDE:file1[+file2][+file3]...]
EXAMPLE:
xcopy E:oracle\BACKUP\archbkps\PROD* /I/D/Y \\192.168.1.100\e\oracle\backup\archbkps\* >E:\oracle\BACKUP\SCRIPTS\remotedr_archbkps.log
/D:m-d-y 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.
/I If destination does not exist and copying more than one file,assumes that destination must be a directory.
/-Y Causes prompting to confirm you want to overwrite an
existing destination file.
The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.
The xcopy command, with its many options and ability to copy entire directories, is similar to, but much more powerful than, the traditional copy command.
SYNTAX:
EXAMPLE:
xcopy E:oracle\BACKUP\archbkps\PROD* /I/D/Y \\192.168.1.100\e\oracle\backup\archbkps\* >E:\oracle\BACKUP\SCRIPTS\remotedr_archbkps.log
/D:m-d-y 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.
/I If destination does not exist and copying more than one file,assumes that destination must be a directory.
/-Y Causes prompting to confirm you want to overwrite an
existing destination file.
The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.