Ev0oD Ev0oD 1, 13 13 silver badges 23 23 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked 1. Related Hot Network Questions. Question feed. Remember that for folders with spaces in the name or folders larger than 8 characters in length, it is a good idea to put quotation marks around the path as in the figure above or you may get an error.
You can open the Command Prompt according to the steps shown above. Then, type the Xcopy command as below to copy folders and subfolders without files:. Once the Command Prompt is open, you can then type the following Xcopy command to copy all files and folders and retain its NTFS and Share permissions.
Actually, there are many parameters of Xcopy command, and you can combine different parameters for different situations. But if there is a slight error in the command, the copy operation may fail, and even lead to data loss. Therefore, you must be very careful when using Xcopy command. For users who are not familiar with the use of the command line, and want to copy files and folders easily, you can also use a third-party backup software.
Xcopy essentially duplicates your folders to create an intact copy, and although it has some optional parameters, it is still difficult to do some advanced operations or requires carefully written syntax. For example, you may want to auto copy changed files to target directory, keep different versions of backups for accurate recovery, compress backup files to save storage space, etc.
What's more: If you want to auto sync changed files from source to target in real time, or auto delete older versions of backups to save space, you can upgrade to Professional edition. If you want to backup folders into restorable image files, however, you can consider Backup options, which are better suited for backing up large data like partitions, disks, OS , or keeping different backup versions.
In advanced edition, you can enjoy 3 more practical sync modes: Real-Time Sync : Sync changed files from source directory to target directory in real time. Mirror Sync : Keep the contents in target directory exactly the same as the source directory.
You have to make some minor changes in the batch file you just created. In the code, type the actual values instead of the capital text. Save the batch file. Save the newly edited batch file and place it anywhere you want. Execute the file. Your specified file will be copied from its current location to the one you have specified in the destination address.
Include your email address to get a message when this question is answered. Helpful 0 Not Helpful 0. The file addresses must be properly enclosed in the quotations as specified in the code.
The base file will remain on its original location, and will also be copied to its new location as specified in the batch file. Submit a Tip All tip submissions are carefully reviewed before being published.
Don't usually use to copy folders with large data inside them. You Might Also Like How to. How to. Co-authors: 2.
0コメント