Environment: ExpandEnvironmentVariables

ExpandEnvironmentVariables

Replaces environment tags within a string with the actual values.



 Public Function ExpandEnvironmentVariables(
	  ByRef Name As String ) As String

Parameters

Name
[ByRef] String. A string containing environment variable tags to be replaced.

Return Values

String -  A string containing actual environment variable values in place of tags.

Remarks

The environment variables are tagged using %. A string such as My OS is %OS%.' would become 'My OS is Windows_NT.' for NT machines.

See Also

Project CorLib Overview

Class Environment Overview