![]() ![]() ![]() Much better I think than freaking out a user by scheduling a shutdown. If no shutdown is in progress it will throw an error (Unable to abort the system shutdown because no shutdown was in progress.(1116)). Rather than schedule a shutdown, just try to abort it. I was too lazy to do this in a batch file, I know it is possible though. If the scheduled shutdown is more recent than either the most recent cancellation or shutdown then there is one in progress.ġ075 for a canceled scheduled shutdown, under Windows Logs/System One idea is to query the event viewer for the most recent system shutdown, the most recent scheduled shutdown, and the most recent cancellation of a scheduled shutdown. The event viewer can tell you that a shutdown has been scheduled, but not WHEN it was scheduled. I can think of two workarounds for our problem. For each different time that you need to quit an app or apps, you need to create a separate task and a separate batch file.I have the same problem, I searched all over, but did not find anything useful.Įventually I just started messing around with different things I could think of. Remember that for apps that need to be quit at the same time, a single task, and a single batch script will do the job. If you specified multiple kill commands in the script, and not all apps in the script are running, the script will still quit the ones that are running. It won’t go into a loop and continue to run until it finds the process to quit. The script won’t be able to find the EXE in the list of running processes and it will do nothing. The task will still run, and it will, in turn, run the script. If the app is not running, nothing will happen. It will be enabled by default and when the time triggers it, it will close the app that you specified in the script. Click the Browse button and select the script that you created in the previous step. Next, go to the Actions tab and add a new action. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |