Xcopy-switches



XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
                           [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
                           [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B] [/J]
                           [/EXCLUDE:file1[+file2][+file3]...]


Switch Description
/? To display the help for commands and switches
Source Source drive or path from where you want to copy the data
Destination Destination can be a drive letter, Folder name or File name   
/W This switch will ask for permission before starting the copy this massage will appear "Press any key to begin coping files"
/P Prompts before creating each destination file  
/S This switch will copy all folders and subfolders except the empty folders
/E This switch will copy all directories even they are empty. /E can be used with /S and /T
/L With this switch you can display a list of files those need to be copied
/U This switch will copy the files those are already existing in the destination
/Q This switch will not display file name during copy
/A This switch will copy the files with archive attribute set will not make any change in the attribute at destination
/C This switch is to ignore error during the copy. with /C copy will be continued even with error
/N With this switch you can copy the files with generated short file or folder names usually this switch is required while your coping the files from NTFS to FAT file system
/D:Date With this switch you can copy change on/or after the specific date. if date not defined all files will be copied those are newer than existing destinations files into the new folder.
/M This switch copies files with archive attribute set then disable the archive attribute
/I If destination dose not exist this switch will create a new directory in destination the copy all specified file in to the new directory
/F This switch shows source and destination file names during copy
/H With this switch you can copy hidden and system files as well
/K This switch keeps the read-only attribute on destination files same as source files no changes will be done. note: By default xcopy removes the read-only attribute
/R This switch copies read-only files
/-Y This switch will prompt before overwriting any file
/Y This switch will overwrite files on the destination without prompt
/T This switch creates directory structure although does not copy files, empty directories, and empty sub-directories
/V This switch verifies all files while writing on destination to make sure that destination file are unique to the source
/G This switch creates decrypted files in destination while destination does not support encryption
/O This switch copies file ownership and  discretionary access control list (DACL) information
/X This switch keeps audit settings and system access control list (SACL) information while coping the files
/Exclude:FileName[+
[filename2][+
[filename3]()]
with this switch you can exclude specific file while coping (Click here for examples)
/Z With switch you can copy data over the network with restartable mode
/B With switch you can copy symbolic link instead of files