Have you taken a look at the manual?

Does this correct the problem?
code:
ExpandEnvironmentVars( )

Action: Expands any environment variables inside a string to the corresponding plain text value.

Syntax: EXPANDENVIRONMENTVARS ("string")

Parameter: String
The string you want to expand.

Returns: The expanded string.

Example: $Value = ReadValue( "HKLM\System\CurrentControlset\Control\Windows", "SystemDirectory")
? ExpandEnvironmentVars( $Value )

_________________________
Home page: http://www.kixhelp.com/hb/