I am trying to scan the registry of remote computers from a list i pulled out of active directory. The code that i have works seperate, but together i cannot get it to work. I'm guessing im the one at fault.

When i run this code on my machine, it displays the following information
8.0.6001.18702[0]
 Code:
Break on
$filename = "c:\test\version.txt"
$RowsType = Readvalue("HKLM\SOFTWARE\Microsoft\Internet Explorer", "Version")
If @ERROR = 0
   ? "Version: $RowsType"
If Open( 2 , "$filename" , 5 ) = 0
   $counter = 0
   While $counter < $rowstype
       $nul = WriteLine ( 2 , "$rowstype[$counter] " )
       $counter = $counter + 1
   Loop
   $nul = Close(2)
Endif
 


If i run this code, it displays every comptuer in the list. example
Line read: [BERK_WEBER]
Line read: [BERK_WOOD]

 Code:
IF Open(3, "c:\test\ie8.txt")  = 0
   $x = ReadLine(3)
   WHILE @ERROR = 0
      ? "Line read: [" + $x + "]"
      $x = ReadLine(3)
loop
     Close (3)


This code does not work. Any help?

 Code:
Break on
$filename = "c:\test\version.txt"
readline ("c:\test\ie8.txt") = 0
$computer = ReadLine(3)
   WHILE @ERROR = 0
      $computer = ReadLine(3)
$RowsType = Readvalue("\\$computer\HKLM\SOFTWARE\Microsoft\Internet Explorer", "Version")
If @ERROR = 0
   ? "Version: $RowsType"
If Open( 2 , "$filename" , 5 ) = 0
   $counter = 0
   While $counter < $rowstype
       $nul = WriteLine ( 2 , "$rowstype[$counter] " )
       $counter = $counter + 1
   Loop
   $nul = Close(2)
Endif


once again, i'm not very good with kix. I'm more of a batch file guy. However, the people that i work with usually request kix scripts. So i'm trying. Sorry if i screw this up.


Edited by Tesdall (2009-12-15 07:02 PM)
_________________________
Where ever you go, there you are.