BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Detecting a process that is running

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Ed Adelman
Guest





PostPosted: Sun Dec 21, 2003 11:32 am    Post subject: Detecting a process that is running Reply with quote



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





PostPosted: Sun Dec 21, 2003 1:44 pm    Post subject: Re: Detecting a process that is running Reply with quote



Quote:
What I ultimately want to do is check to see if Extra.exe is running.

Here you go:

http://www.swissdelphicenter.ch/en/showcode.php?id=616

HTH

tom



Back to top
Ed Adelman
Guest





PostPosted: Mon Dec 22, 2003 1:49 pm    Post subject: Re: Detecting a process that is running Reply with quote



That worked great. Thanks.
"Thomas Stutz" <tstutz at gmx net> wrote

Quote:
What I ultimately want to do is check to see if Extra.exe is running.

Here you go:

http://www.swissdelphicenter.ch/en/showcode.php?id=616

HTH

tom





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.