Search results
14 sty 2014 · import subprocess, time while True: proc=subprocess.Popen("something.exe") time.sleep(3*60*60) # 3 hours proc.kill() time.sleep(30) # 30 seconds
3 lut 2024 · To automatically shut down your Windows 11 laptop after a period of idle time using Task Scheduler, you can follow these steps: Open Task Scheduler: Press the Windows key + R to open the Run dialog box, then type "taskschd.msc" (without quotes) and press Enter.
24 mar 2013 · I want to create batch file which starts a program and after 20 minutes will close the program and start it again. The only thing I know about a batch file is how to start a program: You'll likely want to use schtasks.exe to schedule the task.
20 kwi 2021 · We show you how to create an automatic shutdown timer in Windows 10 that will only run if you haven't used your PC in a while. By Ryan Maskell. - April 20, 2021 5:25 pm CEST. PCs are power-hungry...
You can do this using the free program autohotkey. Essentially, you would create a loop consisting of opening the program, setting a timer for x minutes, then closing the program. You will need to look at the following autohotkey commands: Loop; SetTimer or Sleep; Run; WinClose; You can also find useful snippets on SuperUser using the ...
I'm looking for a way for a user to launch a Windows application that will only run for a given amount of time, say an hour. After the hour is up, an alert window will pop up, saying "Program will be terminated in five minutes, unless you click here".
Here are simple steps to shutdown your computer after a specified time without any application!: Open the Run window (Windows Key+R) or (Start / All Programs / Accessories / Run). Key shutdown -s -t 1800: [1800 (can be changed) is the number of seconds after which the computer will turn off.]