Action Script to copy a file to a certain location on a Server

(imported topic written by garbroo91)

I am trying to copy a batch file to 150 servers. I am not sure how to write the script. I am basically looking to copy a file to to root of C:\

If anyone could help me out or point me in the right direction I would appreciate it.

I am thinking something like this:

not exist C:\ delete-event-logs.bat

download \“server name”\delete-event -logs.bat

(imported comment written by BenKus)

Hi garbroo,

Probably the best thing you can do is use the Software Distribution Wizard (under the “Wizards” menu in the BES Console).

Upload your batch file and then edit the resulting Task to have the following relevance:

not exist file “C:\delete-event-logs.bat”

And your action will look something like this:

download http://domain.com:52311/Uploads/fa09c842c34106deeb6ffaf8656ade9758e718a4/big7.tmp
continue if { (size of it = 135 and sha1 of it = “fa09c842c34106deeb6ffaf8656ade9758e718a4”) of file “big7.tmp” of folder “__Download”}
extract big7.tmp

move __download\delete-event-logs.bat C:\delete-event-logs.bat

Ben

(imported comment written by garbroo91)

Ben, thanks I will give that a try and test it out!

(imported comment written by garbroo91)

Ben, thanks it worked like a champ! I just set the relevance

(name of operating system = “WinNT” OR name of operating system = “Win2000 Server” OR name of operating system = “Win2003”) AND True

I know that the files does not exist.

thanks for your help this just saved me a lot of time

Gary