1.

How to get System Directory,UserProfile,Machine Name in asp.net

Answer»

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")



Discussion

No Comment Found