Okay I figured out the First problem It was the \ being escaped. Now i need ot figure out the rest of this first section.
Example script below
<?
// Get various values
$env="HKEY_CURRENT_USER\Environment\";
$temp=$env."TEMP";
$tmp=$env."tmp";
// Get a string value
$tempDir=$Reg.$Get[$temp];
// Get and expand the same string value
$tempDirExpand=$Reg.$GetExpand[$temp];
?>
<p>
Your temporary directory is <% = tempDir %> (<% = tempDirExpand %>).<br>
It just SHows () to be the temp dir, where as the asp version shows
Your temporary directory is %USERPROFILE%\Local Settings\Temp (C:\Documents and Settings\Default User\Local Settings\Temp
Thanks for any assistance