Skip to content

Tool for ensuring that a process specified in the arguments is launched only one at a time. Similar to the flock tool in Linux.

License

Notifications You must be signed in to change notification settings

levitation-opensource/SingleInstanceCmd

Repository files navigation

SingleInstanceCmd

Tool for ensuring that a process specified in the arguments is launched only one at a time. Similar to flock tool in Linux.

By default, also a job object is created, which ensures that when SingleInstanceCmd.exe is killed then the child processes descending from it are also killed.

Usage:

SingleInstanceCmd.exe mutexname [-] cmd [args]
"-" indicates that no job object must be created (descending child processes will live even when SingleInstanceCmd.exe is killed)

See also example.bat for a usage example.