Determine if only one instance is running

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)

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

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.

Visual Basic

Language Version: 6

 Dim onlyInstance as Boolean
 onlyInstance = not App.PrevInstance