Getting the SYSTEM environment variable
From a thread over an internal alias
today.. "urn:schemas-microsoft-com:office:office" />
Some have noticed that in V1 we give
you access the user’s environment variables… We are fixing it in Whidbey where
you can get the user or machine
Environment.GetEnvironmentVariable("TEMP",EnvironmentVariableTarget.Machine)
Notice you can do this in V1
with:
using (RegistryKey environmentKey =
Registry.LocalMachine.OpenSubKey(@"System\CurrentControlSet\Control\Session
Manager\Environment", false)) {
string value = environmentKey.GetValue(variable) as
string;
return value;
}
Useful?