.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Code Snippets >> File Operation >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Current Working Directory or Project Startup Path

Posted By:Faizal       Posted Date: November 26, 2008    Points: 10    Category: File Operation    URL: http://www.dotnetspark.com  

Below code is used to find out the current working directory. below are two ways to find out the startup directory or project startup project path the code i have used is in c#.

1st method:

string startupPath = System.IO.Directory.GetCurrentDirectory();

2nd method:

string startupPath = Environment.CurrentDirectory;


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend