Determine if only one instance is running

From Rosetta Code
Revision as of 05:57, 14 November 2007 by rosettacode>Grauenwolf (New page: {{task}} This task is to determine if there is only one instance of an application running. =={{header|Visual Basic}}== '''Language Version:''' 6 Dim onlyInstance as Boolean onlyIns...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Task
Determine if only one instance is running
You are encouraged to solve this task according to the task description, using any language you may know.

This task is to determine if there is only one instance of an application running.

Visual Basic

Language Version: 6

 Dim onlyInstance as Boolean
 onlyInstance = not App.PrevInstance