Re: How to get name of application that launched current process

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Have you considered having A passed it's full pathname to B as a command
line parameter, when it launches B?

--
--
Truth,
James Curran
[erstwhile VC++ MVP]

Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com

"chief tent" <cschubert@xxxxxxxxx> wrote in message
news:eb32ffb6.0504251138.463e0edc@xxxxxxxxxxxxxxxxxxxxx
> Basic question: Two C# programs A and B. Program A is launched by the
> user, then program A launches program B. From program B, I want to get
> the filename and path of program A (the process that launched B). I've
> spent a while searching around for this and can't seem to find
> anything. Is is even possible to do this?
>
> A few more details - From program A I'm launching B using
> System.Diagnostics.Process.Start()
>
> Both developed in VS2001, .net framework 1.0
>
> Thanks in advance for any help.


.



Relevant Pages

  • Re: Hyperlink to launch WMPlayer with command line
    ... The error message is ...... ... launches, which in turn launches the multicast stream and content plays. ... the users closes WMP and tries again, same sequence, but it ends with the ... That's why I'm trying to launch WMP and feed it a command line for the ...
    (microsoft.public.windowsmedia.player)
  • Re: Iceweasel and `new tab
    ... command opens a new tab, ... but the next URLs are not loaded at all by Iceweasel. ... Icweasel, my script launches the following URL, and this process needs ...
    (Debian-User)
  • Re: How do I get control of terminal back?
    ... Now, however, i can't get just a terminal session -- launching ... teminal automatically uses that command line and launches another ... session on the remote machine. ...
    (comp.sys.mac.apps)
  • Re: Hyperlink to launch WMPlayer with command line
    ... Is there any way within Outlook of telling wmplayer to ... which is not what a hyperlink is. ... to incorrect formatting of the command line information. ... I need to create a hyperlink that launches WMPlayer with a command line ...
    (microsoft.public.windowsmedia.player)
  • Re: Delay Program Launch From Startup Menu
    ... At home and work I have a utility that launches from the Startup menu. ... Is there a way to delay the launch of an app from the Startup menu? ... start a Command Prompt and type start /? ...
    (microsoft.public.windowsxp.general)