Hello All,

I must be missing something simple. I have a Windows XP Pro SP 2 system using kixtart vs 4.53. I have read ProfileImagePath from the registry where the value starts with "%SystemDrive%." Every time I try to use this variable, kixtart isn't substituting "C:" for "%SystemDrive%." For example, I have the value from ProfileImagePath in the variable, $strPath and do the following:

 Code:
$strFilename = Dir($strPath + "\*.*")


$strFilename is always blank. I even tried to pull the environment variable out of the front of the variable and put it in its own variable to try and force the evaluation, but that did not work as follows:

 Code:
$strVariable = Substr($strPath,1,Instr(Substr($strPath,2),"%")+1)
? "strVariable is: " + $strVariable


All I get out is %SystemDrive%. What am I doing wrong?

Thanks!

Brad V