W
wuzzle
I can't see what I am doing wrong. I modified this script that I
found on MS web site
Const ForReading = 1
Const OverwriteExisting = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\Scripts\Computers.txt")
Do Until objFile.AtEndOfStream
strComputer = objFile.ReadLine
strRemoteFile = "\\" & strComputer & "\C$\windows
\system32\winexit.scr"
objFSO.CopyFile "C:\Program Files\Windows Resource Kits\Tools
\winexit.scr", strRemoteFile, OverwriteExisting
Loop
found on MS web site
Const ForReading = 1
Const OverwriteExisting = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\Scripts\Computers.txt")
Do Until objFile.AtEndOfStream
strComputer = objFile.ReadLine
strRemoteFile = "\\" & strComputer & "\C$\windows
\system32\winexit.scr"
objFSO.CopyFile "C:\Program Files\Windows Resource Kits\Tools
\winexit.scr", strRemoteFile, OverwriteExisting
Loop