Help us understand the problem. What is going on with this article?

${西暦}/${月}のフォルダをbatで作る

More than 3 years have passed since last update.

ただの書き殴りです(もっと良い方法あれば...
usage: hoge.bat 2010 2020

setlocal enabledelayedexpansion
for /L %%y in (%1,1,%2) do (set b=%%y
for /L %%i in (101,1,112) do (set a=%%i
mkdir "!b!/!a:~-2!"))
endlocal
mythrnr
Web系のシステム作ってご飯食べてるへっぽこ
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away