Stephen,

Might want to try this little known, not documented in the html help files function. Its called:

EXPANDENVIRONMENTVARS

Action:

Expands any environment variables inside a string to the corresponding value.

Syntax:

EXPANDENVIRONMENTVARS ("string")

Parameters:

String
The string you want to expand.

Returns:

The expanded string.

Example:

$Value = ReadValue("HKEY_LOCAL_MACHINE\System\CurrentControlset\Control\Windows", “SystemDirectory” )

? ExpandEnvironmentVars( $Value )

Hope this helps!

Bryce does rock, doesn't he !

-Shawn