This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Function Definition: ‘GetEnvironmentVariable(Name): Returns the environment variable specified in Name. To get a list of environment variables, go to Control Panel > System > Advanced System Settings > Environment Variables. A list of system variables appears. Any value from this can be used.’
A colleague of mine showed that the GetEnvironmentVariable wasn’t always around and that he used to pull this data from the Registry. So I thought I would include that in here as well:
Function Definition: ‘ReadRegistryString(Key, ValueName, DefaultValue="): Returns a value from the registry.’