OpenWith External App Get ID To CLose

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



I want my VB6 app to start an external .exe, get some thing back so that
later like a handle or ID I can close and/or kill the .exe. i.e. attempt to
close but if it does not close then kill it. Kill because I may wish to
abando the open process before it completes what it is doing.
The problem is a little more complicated since I need to use openwith.
For example, my app would use openwith to open a text like file. The text
file might be a .rtf or .txt so either WordPad or Notepad would open it or
some other app that got associated with it by the user.
The the app could be unknown.
Later I want to close that app, whatever it is.
I do not know the terminology to ask the question properly , so ...
How do I do that?

.



Relevant Pages

  • Re: Quit my vb6 dll but keep myHelp.chm open
    ... kill an Exe and it kills its kids ... just clone your EXE ... DLL running after the App has terminated. ...
    (microsoft.public.vb.general.discussion)
  • Re: Close application for update
    ... >>replace the main exe i need to close it first. ... copy the files and open it again in the batch file ... Now i am building an other app that would kill the Main ...
    (alt.comp.lang.borland-delphi)
  • Re: [SLE] a few Kmail oddities
    ... Hard to kill. ... app with that temp file as an argument. ... Although there was a fix added, it was later reverted - however ... Try creating a test user and see if it does the ...
    (SuSE)
  • Re: How to gracefully (programmatically) kill an app?
    ... In my experience it isn't always possible to kill a process at will on ... Windows and this is essentially by design of the OS. ... system (imagine you're killing an app that's busy saving a big file. ... Kernel objects include file handles and are objects created by ...
    (microsoft.public.vc.mfc)
  • Re: timelimit, auto exit
    ... time to the times you have set to kill the app. ... The big weakness in this solution is that if your users computers clocks are ... > anyway to have time limit to exit or event proc to exit ...
    (microsoft.public.access.formscoding)