Q:

Is it possible to get the Process Start Info of a C# application?

First off, I had this idea from the Windows Command Prompt
I mean.. like:
 - If you launch it from Win+R or "RUN", it will say "C:/Windows/system32/cmd.exe " in the title
 - If you launch it from Cortana or the Search-type of stuff, it will show "Command Prompt" on its title
Anyways, is it possible to extract that kind of information using C#?
EDIT:
To get things straight, Is it possible to extract the "LAUNCH" information of the application? Like, for example, if I launched it from a shortcut, I am able to know the shortcut name, etc.

A:

If you want to find the start path of the current application you can use the following sniped.
Process.GetCurrentProcess().MainModule.FileName

