Environ

Description

Returns the string associated with an operating system environment variable

Syntax

ret = Environ (envstring)

Parameters
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.
 
Remarks

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”.