Tim Fisher has much more than 30 years' that professional an innovation experience. He's to be writing about tech for an ext than 2 decades and serves together the VP and General Manager the ptcouncil.net.

You are watching: What command is intended to replace the xcopy command?

The xcopy command is a Command prompt command supplied to copy one or an ext files or folders native one location to another location.

With the many options and capability to copy whole directories, it"s similar to, however much more powerful than, the copy command. The robocopy command is also comparable but has actually even much more options.


Miguel Co / ptcouncil.net

Xcopy Command availability

This command is easily accessible from in ~ the Command note in all home windows operating systems consisting of Windows 10, windows 8, home windows 7, home windows Vista, home windows XP, home windows 98, etc. See how to open Command note if you need help.

The accessibility of certain xcopy command switches and other command syntax may differ indigenous operating device to operating system. See just how to review Command Syntax if you"re not sure exactly how to check out the syntax over or in the table below.

Xcopy Command Options
sourceThis defines the documents or peak level folder that you want to copy from. The source is the only compelled parameter. Usage quotes about source if it has spaces.
destinationThis option specifies the ar where the source files or folders need to be copied to. If no destination is listed, the records or folders will be replicated to the exact same folder you operation the xcopy command from. Usage quotes about destination if it has spaces.
/aUsing this choice will only copy archive files uncovered in source. You deserve to not usage /a and also /m together.
/bUse this choice to copy the symbolic connect itself rather of the connect target. This option was an initial available in windows Vista.
/cThis option pressures xcopy to proceed even if it encounters one error.
/d <:date>Use the command with /d option and a particular date, in MM-DD-YYYY format, to copy files adjusted on or after the date. Girlfriend can additionally use this option without clues a certain date to copy just those documents in source that are newer than the same papers that currently exist in destination. This is useful when utilizing xcopy to execute regular document backups.
/eWhen provided alone or with /s, this choice is the exact same as /s yet will likewise create empty folders in destination that were additionally empty in source. The /e choice can additionally be used in addition to the /t option to encompass empty directories and also subdirectories uncovered in source in the brochure structure developed in destination.
/fThis option will screen the full path and record name the both the source and destination files being copied.
/gUsing xcopy with this option permits you come copy encrypted papers in source to a destination the does not support encryption. This alternative will not job-related when copying files from an EFS encrypted drive to a non-EFS encrypted drive.
/hThe command doesn"t copy hidden papers or system papers by default but will as soon as using this option.
/iUse the /i choice to pressure xcopy come assume that destination is a directory. If friend don't use this option, and you're copying from source that is a brochure or team of files and also copying to destination that doesn't exist, the xcopy command will prompt you enter whether destination is a file or directory.
/jThis option duplicates files there is no buffering, a feature valuable for very huge files. This choice was first available in windows 7.
/kUse this option when copying read-only records to maintain that record attribute in destination.
/lUse this choice to show a perform of the files and folders to it is in copied... However no copy is in reality done. The /l option is advantageous if you're building a facility command through several alternatives and you'd prefer to see exactly how it would role hypothetically.
/mThis choice is identical to the /a option however xcopy will revolve off the save on computer attribute after copying the file. You have the right to not use /m and also /a together.
/nThis alternative creates files and also folders in destination using short record names. This choice is only beneficial when you"re utilizing the command to copy papers to a destination the exists ~ above an drive formatted to an older record system choose FAT the does not support long record names.
/oRetains ownership and access Control perform (ACL) information in the papers written in destination.
/pWhen making use of this option, you'll it is in prompted prior to the creation of each file in destination.
/qA type of the contrary of the /f option, the /q move will placed xcopy right into "quiet" mode, omitted the on-screen screen of each file being copied.
/rUse this alternative to overwrite read-only files in destination. If friend don"t use this option once you desire to overwrite a read-only paper in destination, you"ll be motivated with an "Access denied" message and the command will stop running.
/sUse this choice to copy directories, subdirectories, and the files included within them, in addition to the records in the root of source. North folders will not be recreated.
/tThis option pressures the xcopy command to create a directory structure in destination yet not to copy any of the files. In other words, the folders and subfolders uncovered in source will certainly be created however there us be no files. Empty folders will certainly not it is in created.
/uThis choice will just copy records in source the are currently in destination.
/vThis option verifies each paper as it's written, based upon its size, come make sure they're identical. Verification was developed in come the command beginning in home windows XP, therefore this choice does nothing in later versions the Windows and also is only contained for compatibility v older MS-DOS files.
/wUse the /w alternative to existing a "Press any an essential when prepared to being copying file(s)" message. The command will begin copying files as instructed after girlfriend confirm through a key press. This alternative is no the very same as the /p alternative which asks for verification prior to each paper copy.
/xThis option copies file audit settings and System accessibility Control list (SACL) information. You suggest /o when you use the /x option.
/yUse this option to prevent the command native prompting you about overwriting documents from source that currently exist in destination.
/-yUse this option to pressure the command to prompt you around overwriting files. This can seem choose a strange alternative to exist since this is the default behavior of xcopy however the /y option might be preset in the COPYCMD atmosphere variable on some computers, making this alternative necessary.
/zThis option permits the xcopy command to safely avoid copying files when a network connection is lost and then resume copy from whereby it left off once the connection is reestablished. This option also shows the percentage duplicated for each document during the copy process.
/exclude:file1<+file2><+file3>...This option allows you come specify one or an ext file surname containing a perform of search strings you want the command to usage to determine papers and/or folders come skip as soon as copying.

See more: How Old Is Lucy In The Lion The Witch And The Wardrobe, Lucy Pevensie

/?Use the assist switch v xcopy to show thorough help about the command. Executing xcopy /? is the very same as using the help command come execute help xcopy.