Jump to content

Recommended Posts

Posted

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

Posted
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 )
Posted
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...
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...