Re: Find folder containing app's exe file

Frans Bouma <[email protected]> Fri, 20 Feb 2009 13:19:40 +0100
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <003d01c99355$8121d0b0$83657210$@nl>
> I need to find the folder containing the exe file of the running app, so I
> can launch another exe that was installed there.
> 
> Environment.CurrentDirectory depends on the shortcut that launched the
app.
> I know the place in Program Files that my app normally resides in, but the
> user may have changed that at install time. And the command line may not
> have a path.
> 
> If it's relevant, this is a console application.

	this.GetType().Assembly.Location

	FB

===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives