Code:
break on
$INIfile = "c:\data\scripts\test.ini"
$General = Split(ReadProfileString($INIfile,'General',''),chr(10))

For Each $x in $General
if $x
$val = ReadProfileString($INIfile,'General',$x)
$val = "" + $val
$CMDstring = '$$' + $x + ' = "' + $val + '"'
$rc = execute ($CMDstring)
endif
Next

?
? $HostName
? $Timestamp
? $MAC
? $LLU
? $OS
? $Ver
? $ScriptRunTime



I just saw your new post. I will ook at it when I get off the phone.
_________________________
Home page: http://www.kixhelp.com/hb/