I am looking for a software (could be as a BAT script) that could check if a program's instance is running or not, before running that program. And if the software / script detects that the program is not running, it should run that program, else it should not do anything.
Note: The program I'm gonna be running (uTorrent) doesn't have detection to check if an instance of itself is already running, before running itself.
I am asking this because I am currently using a software (Networx) which runs uTorrent if it detects that my internet connection's bandwidth has not been used for some time (in my case I set it to run uTorrent if it detects that 50 KB or less has been downloaded and uploaded within a 5 minute-period).
However, it doesn't have a feature to check if a program is already running before calling it. If it runs uTorrent while uTorrent is already running, uTorrent's window goes to the front of the screen, stealing window focus, which could be distracting if you are working on a window and do not want another window going to the front of the screen.
The uTorrent /MINIMIZED argument only works correctly if uTorrent is not already running.
Or does anyone know of another software that can do what the software I'm currently using does, except that it will check if uTorrent is already running, before calling it?
Edit: I would like to add that it is preferable if the software / script runs minimized or hidden and not go to the foreground or steal window focus. Also, the software or BAT script preferably should exit itself after it has done its task.