<< back to sysax.com Product page

15.1. Reading Environment variables

The GetEnvVar method can be used to read environment variable that are available in the computer system.

Exhibit 15.1. IDL Definition of method to reading environment variables



HRESULT GetEnvVar       ([in] BSTR b_envvarname, [out, retval] BSTR *b_envvarvalue);


Exhibit 15.2. Example usage of method to reading environment variables (VBScript)


Dim pval
pval = app.GetEnvVar "PATH"