Skip to content

Instantly share code, notes, and snippets.

@telmotrooper
Last active April 15, 2017 15:10
Show Gist options
  • Save telmotrooper/e20ccde6ee991536a5862694873dd468 to your computer and use it in GitHub Desktop.
Save telmotrooper/e20ccde6ee991536a5862694873dd468 to your computer and use it in GitHub Desktop.
Script to shutdown your Windows system in a given number of hours
@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