Connecting Tech Pros Worldwide Help | Site Map

Can I find my own .exe-file name?

Ronald Kloverod
Guest
 
Posts: n/a
#1: Jul 21 '05
Hi!
Is there any easy way to find the name of the programs .exe-file? I'm using
C# and have tried using System.Reflection.AssemblyName. But this one seems
to give me the name as it was at compile time. In my case, the "original"
..exe-file may be renamed, and what I want to know is "my" new name.

In advance: Thanks!

Ronald


Miha Markic
Guest
 
Posts: n/a
#2: Jul 21 '05

re: Can I find my own .exe-file name?


Hi Ronald,

Check out Application.ExecutablePath property.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"Ronald Kloverod" <ronald.kloverod@xexcom.no> wrote in message
news:%23OvFQk8vDHA.2340@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi!
> Is there any easy way to find the name of the programs .exe-file? I'm[/color]
using[color=blue]
> C# and have tried using System.Reflection.AssemblyName. But this one seems
> to give me the name as it was at compile time. In my case, the "original"
> .exe-file may be renamed, and what I want to know is "my" new name.
>
> In advance: Thanks!
>
> Ronald
>
>[/color]


Closed Thread