All Forums >> [Scripting] >> Post a VBScript >> Copy Files. Read Computer Names Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
In case your like me and you dont know much about vbs heres how this works and what you need to do.
How it works:
This reads a list of computer names from a txt file. It then pings each one. If it does not ping it writes the computer name to a txt file called Failed.txt. If it does ping it will copy the file you specify to the destination you specified on the computer then write the computer name to a text file named Completed.txt.
What you need to do:
Because this script works out of a folder you will need to create a folder for it. ex. Copy Files... and place the script into it. Then create a txt file named Computer Names.txt inside the same folder and enter the computer names into it. Open the vbs script for editing. you will need to edit line 21. If you can place the file to be copied into the folder as well that works great. Just replace %file% with the file name. be sure to include the extention. If you would like to keep the folder in its location just replace it with the path. ex. C:\folder\test.txt. Then you will need to edit the destination. it is curently set to \\computername\C$\ and is in line 21 as well. When the script has finished it will display a messsage box letting you know.