How to read a user environment variable in C#? -
How can I read a user-specific environment variable? I know how to get a system wide, like
environment. GETEnvironmentVariable ("SOMETHING");
Thanks advance!
Use other surcharges it lets you specify.
Environment. GETEnvironmentVariable (variable, target);
The target can be:
Environmental targets. Process
,
Environmental target.User
,
< Code> environmentally-friendly area Machine .
Comments
Post a Comment