I must be half asleep - I can't for the life of me figure out why the code is throwing an error. Please help.
V/r,
SPC Key
United States Army
Code:
SET objFSO = CreateObject("Scripting.fileSystemObject")
SET objFileTEXT = objFSO.OpenTextFile("hosts.txt",2,TRUE)
DO UNTIL objFileTEXT.AtEndOfStream
strComputer = objFileTEXT.ReadLine
wscript.echo strComputer
LOOP
V/r,
SPC Key
United States Army