Skip to content

Instantly share code, notes, and snippets.

@SgtPooki
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SgtPooki/99e12f32a874aa7dd3b2 to your computer and use it in GitHub Desktop.
Save SgtPooki/99e12f32a874aa7dd3b2 to your computer and use it in GitHub Desktop.
Create a beep! "beep x" will beep x times, for a max of 10. x defaults to 1.
@echo off
REM loopNum defaults to 1, caps at 10.
REM see https://gist.github.com/SgtPooki/99e12f32a874aa7dd3b2
SET loopNum=1
If not "%~1"=="" (
SET loopNum=%1
)
FOR /L %%i IN (1,1,10) DO (
@echo 
IF %%i GEQ %loopNum% GOTO :scriptEOF
)
:scriptEOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment