Returns the string associated with an operating system environment variable
ret = Environ (envstring)
ret | String, output |
This is the actual string associated with the environment string name. | |
envstring | String, input |
This is the name of the environment string. |
This is a PASSPORT command.
Example
Sub
ZMain()
strEnv=Environ("PASSPORT")
MsgBox "The variable is: " & strEnv
End Sub
If the SET PASSPORT=C:\PASSPORT is in the AUTOEXEC.BAT file, the string would have the value “C:\PASSPORT”.