问题
How can one access a system environment variable in Flex/AIR (say %appdata%, %userdomain%)?
回答1:
There is no API that you can use to get a environment variable in Flex/AIR applications. You will have to pass these as (commandline?) parameters to your application.
来源:https://stackoverflow.com/questions/784490/access-system-environment-variable-in-air