My Point of Sales application is running on a network,
the whole application resides on a PC on a network in
c:\POS folder containing all the executable and database
named posdata, which in turn is shared, all the users
needing to run the program just map a drive to this
folder and create a shortcut on their desktop.
The program can also run on the main PC itself.
Suppose an instance of this program is running on the
main pc and another instance is also launched at station
Now for certain module, I need to use the database
exclusively on the main PC and I also want to close the
I WANT TO KNOW THE COMMAND OR ROUTINE WHICH CAN BE USED
TO FIND OUT IF AN INSTANCE OF THIS PROGRAM IS RUNNING AT
Thanks in advance