Last active
April 15, 2017 15:10
-
-
Save telmotrooper/e20ccde6ee991536a5862694873dd468 to your computer and use it in GitHub Desktop.
Script to shutdown your Windows system in a given number of hours
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title Windows Shutdown Helper | |
echo ########################### | |
echo # Windows Shutdown Helper # | |
echo ########################### | |
set /p hours= "Hours to shutdown: " | |
set /a seconds= (%hours% * 60 * 60) | |
shutdown -s -t %seconds% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment