Ok, so this is what I've done....
Retrieving the list of computers...
code:
$infile="c:\machines.txt" ; <-- contains your machine names, one per line
; read the input file for the computer(s) to be queried
If Open(3, "$infile") = 0
$computerlist = Ucase(Trim(ReadLine(3)))
While @error = 0
For Each $computer in $computerlist
Gosub main ;do stuff
Next
$computer = Ucase(Trim(ReadLine(3)))
Loop
If Close (3) = 0
EndIf
EndIf
but it doesn't seem to reach out to the two machines in my test list. Instead the script still runs locally and I end up with an inventory of my PC.
if you want to look at the rest of the code look here.... My Code
I'm just not getting it.
_________________________
penny = the target
the playing field = three football fields side by side
you = only allowed to stand on the outside of the playing field
tool you get to use to find the penny = a ONE INCH LAWN DART
get the level of difficulty?