how to find exe startup path

joshua7

Member
Joined
Dec 14, 2005
Messages
8
Programming Experience
1-3
greetings,

i am writing a console application that requires an xml configuration file. normally i would find the location of this file using something like:

conPath = application.startupPath & "\settings.xml"

however in the console application i can find no application object.

is there an import i am missing (currently just using Imports Microsoft.VisualBasic) or another way to go about figuring this out.

thankee,
 
VB.NET:
System.AppDomain.CurrentDomain.BaseDirectory
 
A useful one this is apparently. :)
 
Back
Top