What i am trying to do is to open automatically some files each specific time. I am opening such files with Shellexecute instruction as is showed next:
var vpchar : arrar [0..800] of char; begin StrPcopy(vpchar, table1filename.value); Shellexecute(application.handle, 'open', vpchar, nil, nil, SW_NORMAL) ..... ..... end; When a file is opened, after certain time it should be closed and then another file should be opened. Thank you ! --- In [email protected], "Charlie Chambers" <[EMAIL PROTECTED]> wrote: > > 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] >

