Nhan,
You can get the entry point for the application by calling the static
GetEntryPoint method on the Assembly type and getting the entry point of the
assembly that was used to launch the CLR.
Once you have that, you can use the Location property on the assembly
returned to find out where it is being executed from.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Le, Thanh-Nhan" <le*****@freenet.de> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
Hi,
How can I retrieve the path of the current application (written in C#)?
In VB6 I can do it with property path of app object (app.path).
Thanks
Nhan