Skip to content

Instantly share code, notes, and snippets.

@hymkor
Created April 11, 2015 16:46
Show Gist options
  • Save hymkor/076ad2fd540f072fc766 to your computer and use it in GitHub Desktop.
Save hymkor/076ad2fd540f072fc766 to your computer and use it in GitHub Desktop.
バッチファイルで作る seq
@echo off
setlocal
if "%3" == "" (
set "STEP=1"
) else (
set "STEP=%3"
)
if "%2" == "" (
set "START=1"
set "END=%1"
) else (
set "START=%1"
set "END=%2"
)
for /L %%I in (%START%,%STEP%,%END%) do echo %%I
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment