Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect if an application is running on the LAN

Status
Not open for further replies.

sirpelon

Programmer
Sep 13, 2001
19
0
0
MX
Hi,

I'm developing a distributed application for capture clients orders, i have implemented a module that monitors the sessions of the users, but only one instance of this module can be running at a time. How can I detect if there is a previous instance of this module running on my LAN, the module is a Standard .EXE developed in Visual Basic 6

Thanks in advance
 
Try this in your Startup code:

If App.PrevInstance Then End Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Pls ignore last post - I failed to notice LAN (I've had a hard day! Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top