Preventing multi-program opening
Moderator: DosItHelp
Preventing multi-program opening
I have a program which i would like only one session open at a time. I want to create a batch script which prevent any more of opening and prompt a message saying something like -'There is one open already'. Please can anyone help?
Code: Select all
@echo off
tasklist |findstr /c:"My Prog.exe" &&(echo There is one open already &pause &exit /b)
start "" "My Prog.exe"