GetEnv Method (Shell Object)¶
Retrieves an environment variable. strName The name of the environment variable. Returns the contents of the specified environment variable. Supported on EmEditor Professional Version 24.0 or later.¶
[JavaScript]¶
str = shell.GetEnv( strName );
[VBScript]¶
str = shell.GetEnv( strName )
Parameters¶
Examples¶
[JavaScript]¶
str = shell.GetEnv( "OPENAI_API_KEY" );
[VBScript]¶
str = shell.GetEnv( "OPENAI_API_KEY" )
Return Value¶
Version¶