![]() For instance, if you want the computer to shut down in 2 hours, the command should look like shutdown -s -t 7200. If you need to determine if Windows has schedule a shutdown (as it does automatically after some Windows Updates) then there is a registry entry that is set which you can query. The 'XXXX' should be the time in seconds you want to elapse before the computer shuts down. At its core, it runs a scheduled task whose actions is a shutdown command through the windows command prompt. The Above solution will detect if a shutdown has been scheduled via the shutdown.exe command using the /t argument. ![]() These programs will give you additional options, such as the ability to log out, hibernate, set an exact shutdown time or shut down after a length of inactivity.Įditor's note: This article was updated March 3, 2017, to include additional information about Windows sleep timers. To create a shutdown timer manually, open Command Prompt and type the command shutdown -s -t XXXX. If you don't want to create a handful of sleep timer shortcuts or constantly edit the one you have to accommodate different time intervals - or if you just want a graphical interface - you're better off installing a dedicated program, like PC Sleep or Sleep Timer. From within Properties, you can also assign a different image as the icon. Type command into your Start Menu search box and select the Best Match. ![]() To change to the Root directory type cd and hit Enter (Figure 4). This will open the Command Prompt window ( Figure 3 ). ![]() To change the time on the shutdown timer, right-click the shortcut icon, select Properties and change the seconds value in the Target field. The easiest way to set your computer to shut down on a timer is through the Command Prompt, using the Windows shutdown command. In the search results, Right-Click on cmd and select Run as administrator ( Figure 2 ). To cancel the timer, you can create a second shortcut using shutdown -a or enter the shutdown -a command in Command Prompt. Enter a name for the shortcut (for example, "Shutdown 1 Hour") and click Finish.Īny time you double-click the shutdown shortcut, the timer will start.In the path field type "shutdown -s -t XXXX" and click Next.Right-click on the desktop, hover over New and select Shortcut in the side menu. ![]()
0 Comments
Leave a Reply. |