Ok, I have an INI file with these values: Code:
[General]
HostName=pc1
Timestamp=1149869020
MAC=000BDB82230F
LLU=cameron.wilson
OS=Windows XP Professional
Ver=Service Pack 2
ScriptRunTime=16



I'm using this loop to get that information: Code:
$General		= QS(Split(ReadProfileString($DatedFile,'General',''),chr(10)))


For Each $x in $General
$i = ReadProfileString($DatedFile,'General',$x)
? $$x
Next



Now my vars in the script match the INI element name. So if $x = 'MAC' in my script, then if I can turn $$x into $MAC, then I cancompare the actual MAC against the one stored in the INI file.... is that any better?


Edited by thepip3r (2006-06-09 08:40 PM)