![]() ✎ Note: Just double click the batch file each time you want to sync the two external hard drives. It will bring out a Command Prompt window to show you the sync result. Double click the “ xcopy_sync.bat” file to sync one external hard drive to another.Put the file in a location you can easily find. Name the file with the “.bat” extension, “xcopy_sync.bat” for example. Press Ctrl + S to save the batch file./y: suppress prompting to confirm you want to overwrite a file.Generally, errors occur with read-only files, or files that have protected permissions. /c: continue copying even if errors occur.That means to only copy changed or newly added files from the source path to the destination path. /d: copy files whose source time is newer than the destination time./e: copy directories and subdirectories, including empty ones.✍ Tips: Here are explanations of the parameters used in xcopy command: Pause (It prevents the console window from closing after executing the command.) Xcopy g: e: /e /d /c /y (“g:” stands for the source drive and “e:” stands for the destination drive.) Type the following lines to create a batch OFF.Search for Notepad from the search box in the taskbar, and click the top result to start the app.Connect the two external drives to your computer and make sure they are detected.Learn how to sync files between two external hard drives via a batch file of xcopy below: Or you can create a batch file to run xcopy command, which can simplify the work of retyping commands. You can run xcopy command from a Command Prompt window directly. ![]() The Windows Dos Box xcopy command is an excellent solution for syncing one directory to another.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |