Get the startup path in a vb.net console exe

How do get the startup path ( system.windows.forms.application.StartupPath ) of my exe without adding a reference to system.windows.forms?

Answers


You could try

System.AppDomain.CurrentDomain.BaseDirectory

which would work for most cases.


Need Your Help

MediaWiki Special Characters in file name issue

php mediawiki

When I upload a file onto mediawiki with Special Characters in the name it mangles the filename into something that looks like this:

$facebook->getUser(); STILL returning 0

facebook user userid

I see this has been asked a lot here but I still have yet to come up with a solution. I need to get the user's ID to determine if they have already filled out a form in my app. Here is my code..