search servers for a specific folder, build a list, use robocopy to move the data, and then delete
Posted on 2009-04-04
Hello, I would like to thank all those who have posted here in the past. I have been able to put together many scripts that I need using parts from the post here. I have come to a point that I am stuck on two projects. Any help would be great.
Here is what I need to do using VBS or WMI. I need to search two specific paths on all the servers in our network, the server names are in a text file (server.txt) for a list of folders names (foldernames.txt). The path are fixed path: (example \\srvname\sharename\folder1) If
If the specific folder is there, build another text file for the server names and folders. Once the folder name list and server search is complete, create a target folder on a specific server (example: \\archivesrv\foldername).
Once the sources are known and the target folder created, I want to use robocopy to run a move of the data from the source to the target creating a log file of the data. One of the issues I have is running a move job with robocopy on the same foldername from two sources at the same time.
Any ideas would be great