User/System environment variables

J

Jan Tielens

You can use the Environment class, for example

Environment.UserName
Environment.CurrentDirectory

Or which variables are you looking for?

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 
J

Johnny

I want to add a custom variable and value in Users environment.



--
Johnny
Jan Tielens said:
You can use the Environment class, for example

Environment.UserName
Environment.CurrentDirectory

Or which variables are you looking for?

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 
J

Johnny

I did find a way to do it.

It was as simple to add a registry value to HKCU\Environment
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top