I somehow got it to work...sheer luck i belive. How do i keep it going if it cannot connect to one of the machines. Alos, when it writes to the file it writes it like 8 times for each. Example:
 Code:
BERK_BRADY, 8.0.6001.18702, 
BERK_BRADY, 8.0.6001.18702, 
BERK_BRADY, 8.0.6001.18702, 
BERK_BRADY, 8.0.6001.18702, 
BERK_BRADY, 8.0.6001.18702, 
BERK_BRADY, 8.0.6001.18702, 
BERK_BRADY, 8.0.6001.18702, 
BERK_BRADY, 8.0.6001.18702, 
BERK_C_DOCK, 6.0.2900.5512, 
BERK_C_DOCK, 6.0.2900.5512, 
BERK_C_DOCK, 6.0.2900.5512, 
BERK_C_DOCK, 6.0.2900.5512, 
BERK_C_DOCK, 6.0.2900.5512, 
BERK_C_DOCK, 6.0.2900.5512,  


any way to clean this up?


Here is my new code

 Code:
 
Break on

$filename = ("c:\test\version.txt")
$list = ("C:\test\ie8.txt")

IF Open(3, "$list")  = 0
$computer = ReadLine(3)
WHILE @ERROR = 0
? "Computer: $computer"
$Computer = readline(3)

$Version = Readvalue("\\$computer\HKLM\SOFTWARE\Microsoft\Internet Explorer", "Version")

If @ERROR = 0
   ? "Version: $Version"

if @error = 1
loop

If Open( 2 , "$filename") = 0
   $counter = 0
   While $counter < $Version
       $nul = WriteLine ( 2 , "$computer, $Version, " )
       $counter = $counter + 1
   Loop

   $nul = Close(2)

Endif


Also when i run the command from the command prompt i get this:

 Code:

Computer: BERK_BECKY_K
Version: 8.0.6001.18702
Computer: BERK_BRADY
Version: 6.0.2900.5512
Computer: BERK_C_DOCK


Any idea why Becky_k is not showing up in the text file?
I'm not sittin still even though you guys are \:\)


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