Startparth of Console-Application

  • Thread starter Thread starter Klaus Löffelmann
  • Start date Start date
K

Klaus Löffelmann

Hello,

how can a console application get its startpath? The application-object
doesn't apply for console applications, does it?

Thanks

Klaus
 
Klaus Löffelmann said:
how can a console application get its startpath? The
application-object doesn't apply for console applications, does
it?

Dim assy As System.Reflection.Assembly
Dim DirName As String

assy = System.Reflection.Assembly.GetExecutingAssembly()
DirName = System.IO.Path.GetDirectoryName(assy.Location)
 
Back
Top