On Windows 10, Robocopy (Robust File Copy) is a powerful file management command-line tool with many options to transfer files and folders to another location faster and more reliably than using File Explorer. Show
However, by default, Robocopy transfers everything on a given path, which may not be ideal in every scenario as you may have specific files and folders in a location that you don’t want to copy. However, the tool includes a least two options, which you can use to exclude files and folders from a copy process. In this guide, you will learn the steps to copy data using Robocopy on Windows 10 (or Windows 11), excluding those files and folders that you don’t need to transfer.
To exclude a folder while copying with Robocopy, use these steps:
Once you complete the steps, the data will copy to the destination, except the folders specified in the command (exclude_folder_file_robocopy) to be excluded. How to exclude file using RobocopyTo exclude a file while copying with Robocopy, use these steps:
After you complete the steps, Robocopy will copy all the files and folders from a particular location, excluding the files you specified in the command using the /XF switch. How to exclude files and folders using RobocopyTo exclude a file and folder using Robocopy, use these steps:
Once you complete the steps, all the content will copy to the new location except those files and folders you excluded in the command using the /XD and /XF switches. Robocopy command switchesRobocopy has a lot of options, and in the command shown in this guide, we’re using the following switches to make copy data excluding specific files and folders.
The most important switches in this command are the /XD which allows you to exclude folders, and /XF that you can use to exclude files. The other options are optional, but you should use these options that you should use in any standard copy process using Robocopy. We focus this guide on Windows 10, but the instructions should also work on Windows 11. We may earn commission for purchases using our links to help keep offering the free content. Privacy policy info. All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info. Which of the following can be used to configure a remote connection?Which of the following commands can be used to configure a remote connection? The mstsc (Microsoft Terminal Services Client) command is used to configure and connect to remote connections over the network.
Which of the following utilities will rearrange the files on your hard disk to occupy contiguous chunks of space?Microsoft Drive Optimizer (formerly Disk Defragmenter) is a utility in Microsoft Windows designed to increase data access speed by rearranging files stored on a disk to occupy contiguous storage locations, a technique called defragmentation.
Which tool enables you to test and repair a mass storage device in Windows?Windows provides a utility tool known as chkdsk that can correct most errors on a storage disk. The chkdsk utility must be run from an administrator command prompt to perform its work.
Which of the following can you type in the Start menu in Windows to open a command prompt?Press Windows+R to open “Run” box. Type “cmd” and then click “OK” to open a regular Command Prompt. Type “cmd” and then press Ctrl+Shift+Enter to open an administrator Command Prompt.
|