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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server.MapPath in Console Application

Status
Not open for further replies.

JontyMC

Programmer
Nov 26, 2001
1,276
GB
How can I do Server.MapPath("..") in a Console app?

Jon

"I don't regret this, but I both rue and lament it.
 
you're looking for the directory that your application is running in?

string path = System.Windows.Forms.Application.StartupPath;

work from there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top