It actually is working now, I had to add another objFile2.SkipLine to get the line that I needed. apparently I was getting several of the hostname & "NA" on some of the computers but not all I was getting a blank line which I cannot figure out.But those particular computers had different
info in...
Using the script above has worked in the past but I think I'm missing something. The problem I'm having is pulling just line number 13 and outputting to the text file. If you have something better I'm game!
Stevo
This is what I have so far, this will be used to go out to several computers to get the response back and input to the outputfile.
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
'Reads the hostnames file
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile =...
Need help writing a script to find a specific line of text in an ini file and write it to a text file. But will be looking on several computer to see if same info is there.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.