Skip to content

Instantly share code, notes, and snippets.

@macbeth76
Created October 9, 2009 18:32
Show Gist options
  • Select an option

  • Save macbeth76/206232 to your computer and use it in GitHub Desktop.

Select an option

Save macbeth76/206232 to your computer and use it in GitHub Desktop.
@echo off
setLocal EnableDelayedExpansion
REM set /p X=how many time do you want to run
set X=10
set N=0
:loop
if !N! gtr !X! goto :eof
echo your task goes here %N%
set /a N+=1
goto :loop
:eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment