How can I set the PATH environment variable to server machine inasp.net ?

  • Thread starter Thread starter chandan
  • Start date Start date
C

chandan

I want to set the PATH environment variable to server machine through
my application. I am using ASP.net 2.0 and language C#.

Thanks in advance!
Chandan
 
We did this using http://msdn2.microsoft.com/en-us/library/96xafkes.aspx in
tier code running under custom host.

The last paramter EnvironmentTarget allows you to specify the scope of the
change (current process only, logged on user, local machine.) I presume
you are looking for local machine?

Haven't done it using ASP.NET. You might have to figure out the necessary
code access permissions to enable you to do that.

Hope this helps.

Cheers,
-Naraen
 
Back
Top