[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]
Use RunOne utility to run your application and ensure that only once instance of the application is run at a time.
RunOne can be used to limit an application to a single instance. Just use RunOne my_application.exe my parameters to run your application and it will ensure that only once instance of my_application.exe is run at a time. If another instance is already running, RunOne simply aborts without starting a new instance. If you want to kill the previous instance you may want to use the KillProcess utility. In addition RunOne can be used to optionally run applications in hidden or minimized windows.
Here is the help screen containing complete description and examples
Usage: RunOne [/H] [/M] [/T timeout] [program name] [parameters]
Command line parameters:
|/H||Run specified program in a hidden window.|
|/M||Run specified program minimized.|
|/T||Set process timeout in seconds. If the process does not finish in the specified time it is forcibly terminated.|
|program name||Name of the program file to launch. If the name includes spaces enclose the entire name in double quotes.|
|parameters||Optional command line parameters that you want to pass to the program.|
Run RunOne.exe without parameters from the DOS command prompt to see full description of the supported parameters.