Robocopy Script with Destination Folder Name Change
Posted on 2015-02-04
I'm performing a robocopy of user home folders from a separate company. The source folder names are in a different name format than the destination folder names. The source home folders are located in a folder called "userdata". The destination home folders are located in a folder called "home".
I am looking for a way to better automate the process, rather then having 200 separate robocopy commands for each home folder.
Is there a way to copy the entire source root folder "userdata" to the destination folder "home" while specifying the different folder name?
Is there a way to script the robocopy operation so that I can either have the 200 robocopy commands in a file and the process will automatically go through each one in sequential order?
My other thought is to just copy the source named folder as is to the destination, then rename the folders once completed, although this would still be a manual process and I would have to update the home folder path for each user.
It wouldn't be feasible for me to rename the source folder names as, we are constantly getting updated data and I wouldn't want to alter any timestamps of the source data.
Any help and suggestions are appreciated.