Skip to content

Instantly share code, notes, and snippets.

@andras-tim
Last active January 13, 2016 02:49
Show Gist options
  • Save andras-tim/0e4d915566143513898f to your computer and use it in GitHub Desktop.
Save andras-tim/0e4d915566143513898f to your computer and use it in GitHub Desktop.
Sleeping 3... 2... 1...

VisualSleep

Usage

  1. Run visualsleep.cmd 3
Sleeping 3... 2... 1...
  1. Done :)
@echo off
if "%1" == "" goto end
.test "%1" -le 0 && goto end
set remaining=%1
.echo -n "Sleeping "
:sleep
.echo -n "%remaining%... "
timeout 1 > nul
set /a remaining=%remaining%-1
.test %remaining% -gt 0 && goto sleep
echo.
:end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment