Returns the value of the environment variable, str, as a string. If the named environment variable does not exist, it returns the empty string. Unfortunately, there is no way to distinguish between the case where the variable does not exist and the case where it actually has the empty string value "".
getenv ( str As String ) As String
Argument | Type | Description |
---|---|---|
str | String | The name of the environment variable of interest. |
Intent >getenv("windir") --> "C:\WINDOWS"