| |
ccortez
Posts: 4
Score: 0
Joined: 10/1/2008
Status: offline
|
I apologize if this is not the correct place to post, first time posting for me. I found a script on http://www.microsoft.com/technet/scriptcenter/resources/qanda/may07/hey0515.mspx that seemed like it might work but when I edited to apply to my enviorment I get error message. Script: c:\copy.vbs Line: 10 Char: 5 Error: Path not found Code:800A004C Source: Microsoft VBScript runtime error This is the vbs file that i modified Const ForReading = 1 Const OverwriteExisting = TRUE Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile("C:\Computers.txt") Do Until objFile.AtEndOfStream strComputer = objFile.ReadLine strRemoteFile = "\\" & strComputer & "C:\windows\DCAS_Wallpaper13_1920x1200_4.jpg" objFSO.CopyFile "C:\windows\DCAS_Wallpaper13_1920x1200_4.jpg", strRemoteFile, OverwriteExisting Loop If there is an easier way to accomplish this or any help in correcting above script I will greatly appreciate. Thanks.
|
|