The Environment class allows the application to access information about the computer and the application's execution environment. Some examples of this are environment variables and standard paths.
alert(`Document Path: \t${Environment.getDocumentsPath()}\n` +
`System Path: \t${Environment.getSystemPath()}\n` +
`Temporary Path: \t${Environment.getTempPath()}\n`); Returns the computer's standard directory separator. On Windows systems, this is a backslash ("\"), on Linux systems it is a forward slash ("/")
Returns the user's document path. On Windows systems, this is the usually the user's My Documents directory
The value of the environment variable. If the requested environment variable does not exist, an empty string is returned
Calling getEnvironmentVariable() returns the value stored in the system environment variable specified by the var_name parameter. If the environment variable does not exist, an empty string is returned
Returns the computer's program files path. On Windows, this yields either the 'Program Files' path. On Linux systems, the /opt path is returned
Returns the computer's system path. On Windows, this yields either the 'System' or the 'System32' path, depending on the computer's configuration. On Linux systems, this is /usr/bin
Returns the system's temporary path.