Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 10th, 2007, 09:08 AM
Authorized User
 
Join Date: Oct 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default Terminate Already-Existing App Instance

Hi Everyone,

I wrote a special app in VB6 that runs every 15 minutes on a network server, 24x7.

What I need to do is check to see if another instance of this same application is running, and if another instance is already running, is to terminate the previous instance of the app, not the instance of the one that is trying to kick off.

I've used App.PrevInstance in other apps to get the current instance to end if another one is out there, but this time I need to do things the other way around.

I've been digging through some process-related APIs, but I'm not having much luck.

Does anyone have an idea for using some specific API functions or another method to get this to work?

Thank You! :)

Warren





Similar Threads
Thread Thread Starter Forum Replies Last Post
xslt:for-each - how can I exit/terminate a loop? john7321 XSLT 2 November 19th, 2007 08:28 PM
Terminate Process (How To) Nova Beginning VB 6 3 October 14th, 2006 02:37 PM
Adding existing and non-existing attributes spencer.clark XSLT 5 July 27th, 2005 04:02 PM
Form Hide and terminate raj_phoenix Excel VBA 4 January 17th, 2005 07:55 AM
terminate a thread problem lmadhavi Visual C++ 0 November 23rd, 2004 06:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.