Last active
August 29, 2015 14:01
-
-
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.
This file contains hidden or 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 | |
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