When I read entries from an INI file such as %UserProfile% I seem to be having trouble getting those to function inside the code.. such as

Code:
 
$Test = ReadProfileString("C:\file.ini","Section1","WinVar")


Where C:\file.ini is
[SECTION1]
WinVar=%USERPROFILE%

But if I say Code:
?"Var= "%USERPROFILE%   


it will work...

Is there any way to read these dynamic type things from ini file? Thanks in advance for the help.
_________________________
Austin Henderson