Microsoft Windows’s file replication command is known as “Robust file copy” or simply called Robocopy. It uses the concept of timestamp and datestamp for incomplete file transfers, that help in tolerating network interruptions. It knows where to start from using that recovery record having the date/time stamp information. Robocopy eliminates the chance of failure as it skips NTFS junction points as NTFS happens to cause infinite loops. Robocopy replaces all other copy commands with multiple exceptional features.
The concept used in Robocopy to copy multiple files simultaneously is multithreading. The usage of multithreading makes it much faster than standard copy and also Xcopy. The basic syntax is:
robocopy <Source> <Destination> [<File>[ ...]] [<Options>]
- You can pre-specify what to do with conflicting file names.
- You can exclude some files or folders.
- You can schedule a copy and paste operation.
- You can mirror 1 folder to another, deleting files in the destination that don’t exist in the source folder.
Here are a few copy options available to Robocopy:
There are a lot more, please feel free to run Robocopy/? on your command prompt to explore more about it.
robocopy <Source> <Destination> /E
Here /E is used to copy sub-directories and folders along with files.
Why one should know it? Well, you can write a Robocopy script to synchronize folders, you can make backup much faster and secured. It helps to transfer files over servers and a lot more.
- Windows 10 –Feel the Difference
- Useful CMD commands for daily use in Windows OS
- Wi-Fi Password of All Connected Networks in Windows/Linux
- Uninstall Linux completely from a PC with Windows
- Guide to Install MongoDB with Python | Windows
- Zip files in Windows
- Creating Python Virtual Environment in Windows and Linux
- IDE for Python programming on Windows
- How to mount windows drives in Ubuntu
- Setup GitLab Repository On Windows 10
- Writing a Windows batch script
- How To Use Bash Shell Natively On Windows 10
- Cross-platform Windows / Raspberry Pi project with C++, OpenCV and Gtk
- Windows Server 2012 R2 Stuck at "Updating Your System”
- Creating a Dual Boot System with Linux and Windows
- Autorun a Python script on windows startup
- Introduction and Installation of Heroku CLI on Windows machine
- Why Linux Hosting is Cheaper than Windows Hosting ?
- How to create a Folder without any name and icon in Windows OS?
- Why are there two folders - Program Files and Program Files (x86) in 64-bit Windows OS?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.