Function GetWindowsEnvironmentVariable

 

Function GetWindowsEnvironmentVariable( ByRef sName$ )  As String

Purpose: Retrieves the contents of the specified variable from the Windows environment block. The result is a string.

Works in:      OneLiner and Power Flow.

Parameters:     

sName          [in] The name of the environment variable

Return value: If the function succeeds, the return value is the content of the specified variable. If the function fails, the return value is an empty string.

Example:

 

   Print “The Temp dir is: “ & GetWindowsEnvironmentVariable( “TEMP” )