Robocopy Loop Script
Posted on 2008-10-17
Hello I need to schedule a file move operation that will take PROJECTNAME input variable from a list in a text file and loop through each project name in that list. Depending on the project nam. it will move the files to the destination with an appropriate subfolder.
The list of projects would look similar to this not exceeding 4 characters
A Manual command would look like this
robocopy \\source\share \\destination\share\PRJ1 *PRJ1* /MOVE /Z
P.S. The * is a wild card since these files are timestamped according to project and I would like to substitute PRJ1 with the variable determined by the project name provided in the list