Renfield-64 Posted November 15, 2018 Posted November 15, 2018 Sometimes pupils get a bit clicky happy when trying to start a program such as Google Chrome. Because it doesn't open for them in a split second they click on the icon again, and again, and again, and again until the PC fails to respond any more. When I go to check the processes running there are about 20 instances of Google Chrome or whatever they have been trying to open. Microsoft's Kodu for example doesn't appear to start up for at least 5 seconds, by which time they have tried to open it several more times. Is there anything that can be done (apart from standing over them) about this? Can Windows check to see if that program has already been started and prevent further instances from being opened?
chazzy2501 Posted November 15, 2018 Posted November 15, 2018 ok, this is a bit left field but you could remove the shortcuts to the programs and create new shortcuts to scheduled tasks that (run the program) and only allow one instance to run. testing now for phun.
chazzy2501 Posted November 15, 2018 Posted November 15, 2018 ok I've tested it, it totally works I created a desktop shortcut {C:\Windows\System32\schtasks.exe /run /tn "TaskName"} 2018-11-15T11:26:27.7075198 DCC-SCH-4505\4505cw open word only once \open word S-1-5-21-4210983284-1767645381-1147546538-3156 InteractiveToken LeastPrivilege IgnoreNew false true true false false true false true true false false false true false PT72H 7 C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE Only thing I've not configured yet is how to run in users context.
Renfield-64 Posted November 15, 2018 Author Posted November 15, 2018 Ok, so if we could maybe get this to run when they log on to a PC it might work? Thanks.
howartp Posted November 15, 2018 Posted November 15, 2018 I've got a personal shortcut to the Inventory console that crashes/freezes on me periodically. The shortcut actually runs a batch file that taskkill's the old process (whether or not it's running) then runs the new one.
chazzy2501 Posted November 15, 2018 Posted November 15, 2018 well, you can setup the tasks trigger to run the program as a user logs in but it would always run on login! but you could use GPOP to delete the existing shortcuts, make new shortcuts to the scheduled tasks, which it can also create.
Renfield-64 Posted November 15, 2018 Author Posted November 15, 2018 Yes I wouldn't want the program itself to run when they login as they don't always use it.
Ozone Posted November 15, 2018 Posted November 15, 2018 You could use an AutoIT script and just replace the shortcut for Chrome with the shortcut to the AutoIT script in a share. Code would be: If ProcessExists("chrome.exe") == 0 Then ShellExecute("chrome.exe") EndIf
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now