| |
|
How to get System Directory,UserProfile,Machine Name in asp.net Question Posted on 07 Sep 2011 Home >> DotNet >> ASP.NET >> How to get System Directory,UserProfile,Machine Name in asp.net |
Below code is used to get location of system directory from asp.net code
System.Environment.SystemDirectory.ToString()
Below code is used to get MachineName from asp.net code
System.Environment.MachineName.ToString()
Below code is used to get USERPROFILE from asp.net code
Environment.GetEnvironmentVariable("USERPROFILE")
Below code is used to get ASP.NET is running as the account
Environment.UserName.ToString()
Below code is used to get TEMP environment variable
Environment.GetEnvironmentVariable("TEMP") | |
|
|
|
|