I need to find out where the executable that is currently running is located. For example, if a have an executable foo.exe located in c:\bar\foo.exe and I execute foo.exe from c:\a\very\long\path, I still need to know that foo.exe is located in c:\bar. I can get the directory where it was called...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.