Admin Scripts: Batch Full Clone using RoboCopy

System Administrator is always challenged with migration of files/folder from old server to new server or simply moving to specific folder while retaining file/folder permission.

However, the challenge happens when SA needs to migrate large volume of files/folders to different location based on specific folder name.

Hence, I create this admin scripts to make full clone of folder in batch mode that supports wildcard/specific folder name. If you try my admin script and it works, please write a feedback.


S1-1. Download Admin Scripts YLNotes_RoboCopy_BatchFullClone

Download YLNotes_RoboCopy_BatchFullClone (243)

S1-2. Unzip to the root of the drive (e.g. X:\YLNotes\YLNApps\YLNotes_RoboCopy_BatchFullClone)

S1-3. Spreadsheet software to edit Batch Data Template (ODS/XLS/XLSX) and exported into CSV file.



S2-1. Edit YLNotes_RoboCopy_BatchFullClone.cmd and Configure [1] RoboCopy Config


S2-2. Navigate to Templates folder, open template file (ODS/XLS/XLST) using spreadsheet software


S2-3. Input Batch Full Clone Data and export to CSV file to


Batch Data Info:
  • Copy Source     : Source Folder
  • Folder Name     : Folder to be cloned
  • Copy Destination: Destination folder to be copied
  • Matches:
    • ANY: Folder Name with wildcard
    • ALL: Single Folder



S2-4. Right click on YLNotes_RoboCopy_BatchFullClone.cmd and select Run as Administrator


S2-5. Once completed, navigate to log folder. Each Row of Batch Full Clone Data will generate one log file.


p style=”font: 11px/normal Verdana, Arial, Helvetica, sans-serif; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; padding-left: 30px; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px;”> RoboCopy_BatchFullClone_0006 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.