 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ed Adelman Guest
|
Posted: Sun Dec 21, 2003 11:32 am Post subject: Detecting a process that is running |
|
|
I have an application that launches a 3270 terminal emulator called
Extra.exe. Extra.exe is the parent application allowing a user to launch 1
or more terminal host sessions. Through some OLE automation, I do some
screen scraping and finally close the program. The problem is that my users
may also have already been running Extra.exe using their own terminal
sessions. When my Delphi app closes Extra.exe down, it also closes all of
the user sessions running outside of my app. Extra.exe shows up under the
processes tab of window's XP task manager. How can I have Delphi check to
see if the process is running (before my app launches it) so I don't blow
away my user's other terminal sessions when my app completes it's work?
What I ultimately want to do is check to see if Extra.exe is running. If it
is, only open a terminal session and then only close that session when I'm
done. If it isn't I'll have to start Extra.exe, then open the session,
close the session when the app is done and shutdown Extra.exe. Obviously
the key to this is being able to detect if Extra.exe is running in the first
place. Any suggestions would be greatly appreciated. Thanks in advance.
-Ed Adelman
[email]EdAdelman (AT) aol (DOT) com[/email]
|
|
| Back to top |
|
 |
Thomas Stutz Guest
|
|
| Back to top |
|
 |
Ed Adelman Guest
|
Posted: Mon Dec 22, 2003 1:49 pm Post subject: Re: Detecting a process that is running |
|
|
That worked great. Thanks.
"Thomas Stutz" <tstutz at gmx net> wrote
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|