Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


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



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Use of Calendar control in dotnet with code
How to improve Front End UI performance of dotnet web application?
File upload in dotnet
reverse a string
function of garbage collector






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |