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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top