Closing a *.EXE file within a Delphi project (revisited)

From: Carl Gross (cfgross_at_scapca.org)
Date: 12/30/03


Date: Tue, 30 Dec 2003 10:49:36 -0800

I have opened a seperate program from within a Delphi application using the

    ShellOpenFile(Self.Handle, 'Application.exe','','C:\Program
Files\AppFolder\');

command. In order to close the EXE file, I use the following command:

     PostMessage(FindWindow(nil, 'C:\Program
Files\AppFolder\Application.exe'), WM_QUIT, 0, 0);

This, however closes the Delphi App and leaves the Application.EXE file open
and active. Is there another way of handling (no pun intended) this
problem?



Relevant Pages

  • Re: DCC32 problem
    ... I read somewhere that the options on the command line override all ... I'm using Delphi 5. ... project; it's a utility directory. ... Or it may be compiling a source file, but then using a DCU from somewhere other than the place it wrote the file it just compiled. ...
    (alt.comp.lang.borland-delphi)
  • Re: viewing and deleting hacker created dirs
    ... I'd try installing a shell such as cygwin and use the 'ls' command from ... I assume you've checked that the folder isn't simply marked as hidden or as ... Agustin Chernitsky wrote: ... I can't see the .exe file also... ...
    (microsoft.public.win2000.security)
  • Re: [SLE] Kylix on SuSE 9.1
    ... neither the Delphi or C environments would run. ... Same thing here this is what i got from the command line running ... version GLIBC_2.0 not defined in file libc.so.6 with link time ...
    (SuSE)
  • Re: can not run regedit
    ... >>Command is not an exe file. ... >>>>Can't run applications ... >>> file name is the virus, the virus has set itself to ...
    (microsoft.public.windowsxp.perform_maintain)
  • Problem with getting the moment when all reply packages to my command will be received (answer end)
    ... I am Delphi software developer. ... Delphi to implement SSH protocol in Delphi I have decided to create ... I have no idea how can I get the moment when all reply packages to my ... executes command ...
    (comp.security.ssh)