Environment: GetEnvironmentVariable |
Returns an environment variable value.
Public Function GetEnvironmentVariable( ByRef Name As String, Optional ByVal Target As EnvironmentVariableTarget = EnvironmentVariableTarget. Process ) As String
Default: EnvironmentVariableTarget . Process
If the variable does not exist, then an empty string is returned.
A Target of Process will retrieve the variable from the current process. Other targets will retrieve the variable value from the registry.