[Mono-list] StartUp Path

Gonzalo Paniagua Javier gonzalo at ximian.com
Sat Oct 8 22:18:18 EDT 2005


On Sat, 2005-10-08 at 22:21 +0200, xiii29 wrote:
> Hi,
> 
> I'm wondering how can I get the executable path in Mono/Gtk# ...
> 
> Maybe simple but ... still looking for !

>From the assembly that contains the Main method, use
Assembly.GetExecutingAssembly ().Location. This gives you the full path
to the .exe, then Path.GetDirectoryName().

-Gonzalo




More information about the Mono-list mailing list