.exe path for non-GUI application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Application.ExecutablePath gets the .exe path when doing Windows programs. If
you don't have access to Application - how can you find the .exe path?
 
Try this ...

System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;

Cheers,

Greg
 

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