Hi Francisco,
What Rob says is correct and i totally agree with.

Tell us how you "open" the file. Many times you can get the window handle of 
the process you started  and "kill" the process by using  window messages.

Why is it you need to "Kill" the window?  Maybe you need to rethink your design 
as to what you are wanting to accomplish and it's methods?

Cheers,
Charlie

  ----- Original Message ----- 
  From: Rob Kennedy 
  To: [email protected] 
  Sent: Tuesday, March 11, 2008 8:33 PM
  Subject: Re: [delphi-en] Windows processes


  Francisco Javier Hernandez Segura wrote:
  > I am opening a file from my delphi app. For example: a PPS File or an Adobe 
file.
  > How can i close that file after it is launched from my delphi app ?
  > 
  > How can i to kill the process assigned to such file from my delphi 
application?

  You're not opening a file. You're starting a program (maybe). What that 
  program does with the file is out of your control, so you cannot close it.

  How are you doing whatever you're doing. The answer determines what you 
  can do to stop whatever you started earlier.

  -- 
  Rob


   

[Non-text portions of this message have been removed]

Reply via email to