Duration (Pacific Standard Time):
To (Pacific Standard Time):
Impact:
  • None
User Action:
  • None
Visual FoxPro 9.0 SP2

GETENV( ) Function

Returns the contents of the specified MS-DOS environment variable.


GETENV(cVariableName)

Character

cVariableName

Specifies the name of the environment variable. The empty string is returned if the environment variable you specify doesn't exist.

You can locate the Windows directory with the WINDIR environmental variable, which Windows sets when it starts.

Two environment variables are always available: COMSPEC and PATH. You can create your own environment variables with the command shell SET command.

For additional information on creating environment variables, see the Windows product documentation.

CLEAR
? GETENV('PATH')  && Displays the search path