There are a few strategies.
1.
Update a Database entry upon starting and exiting guardian indicating
a segment is in use. Other attempts to start guardian with that
segment would realize guardian is already processing.
2.
Winforms probably has a findwindows call (win32 API does) and if
window is titled with "guardian - segment name" you can search for
that window to avoid collisions.
As a scheduling app I highly recommend writing it as a service.
On Mon, 17 Jan 2005 14:24:02 -0500, Falls, Travis D (HTSC, CASD)
<[EMAIL PROTECTED]> wrote:
> I have an application that can potentially have multiple Gaurdian.exe
> processes running on it. These processes would be running on windows 2000.
> Is there a way to assign metadata say a description to said process to make
> sure only one process for each segment is running? A segment is simply a
> distinct name similar to travis or john. I would only want one
> Gaurdian.exe
> running with the segment name of travis. Guardian is a scheduling
> application w are writing
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/