Skip to content

Instantly share code, notes, and snippets.

@JamoDevNich
Created January 20, 2018 14:21
Show Gist options
  • Save JamoDevNich/627469e9cb1da9959418ecf5115c16b7 to your computer and use it in GitHub Desktop.
Save JamoDevNich/627469e9cb1da9959418ecf5115c16b7 to your computer and use it in GitHub Desktop.
file used for repeated rebooting to condition my sshd drives
@ECHO off
cls
echo Rebooting in 10
ping 127.0.0.1 -n 2 > nul
cls
echo Rebooting in 9
ping 127.0.0.1 -n 2 > nul
cls
echo Rebooting in 8
ping 127.0.0.1 -n 2 > nul
cls
echo Rebooting in 7
ping 127.0.0.1 -n 2 > nul
cls
echo Rebooting in 6
ping 127.0.0.1 -n 2 > nul
cls
echo Rebooting in 5
ping 127.0.0.1 -n 2 > nul
cls
echo Rebooting in 4
ping 127.0.0.1 -n 2 > nul
cls
echo Rebooting in 3
ping 127.0.0.1 -n 2 > nul
cls
echo Rebooting in 2
ping 127.0.0.1 -n 2 > nul
cls
echo Rebooting in 1
ping 127.0.0.1 -n 2 > nul
cls
echo Rebooting in 0
ping 127.0.0.1 -n 2 > nul
shutdown /r /t 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment