linkazoid Posted May 12, 2009 Posted May 12, 2009 Hi, Does anyone have any scripts that can help me? I need it to be able to: move a folder from \\computername\c$\documents and settings\username\Local Setttings\Temp\archive to a server location. e.g \\storage\tests$ - but need to be able to run on multiple computers, if i can specify a txt file with computer names.... amend the computer name to the folder on the end (is this even possible ????) Any Help would be great..... Cheers, Mike
mac_shinobi Posted May 12, 2009 Posted May 12, 2009 you could most likely make a vbscript that can use robocopy with the relevant switches and that way it will keep the security permissions etc ( there is a gui for robocopy if that makes it any easier )
linkazoid Posted May 12, 2009 Author Posted May 12, 2009 Was just having a look at Richcopy which seems to be an upgrade for Robocopy, but could not see where i could do it for multiple pc's... will have a look at robocpy...
Amdian Posted May 13, 2009 Posted May 13, 2009 Have you tried using a batch file? You can use the %computername% variable to echo out the name of the pc, so something like this: xcopy %userprofile%\Local Settings\Temp\archive \\storage\test$\%computername% /e /c /i /h and then if you wanted to remove the old dir: rmdir /s %userprofile%\Local Settings\Temp\archive
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now