Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Application.StartupPath equivalent... 1

Status
Not open for further replies.

pzmgmb

Programmer
Apr 2, 2003
115
0
0
US
Does anybody know the equivalent to Application.StartupPath for use in a console app?

I have a console app that I want to know the location of the executing program and Application.StartupPath wont work because it belongs to the System.Windows.Forms namespace.

Thanks
 
Yep:

Console.WriteLine(System.Environment.CurrentDirectory)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top