Executable directory where application is running from?

Posted by JPJedi on Stack Overflow See other posts from Stack Overflow or by JPJedi
Published on 2010-04-07T14:54:23Z Indexed on 2010/04/07 15:03 UTC
Read the original article Hit count: 213

I need to get the path (not the executable) where my application is running from:

System.AppDomain.CurrentDomain.BaseDirectory()

When I run the above statement with & "/images/image.jpg" on my local machine it works fine but when I install the application on another machine it says it cannot find the file and there is a lot of extra path information some.

I just need the directory of where the app is running. I am coding in VB.NET with Visual Studio 2008.

Thanks!

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about executable