Created
January 12, 2023 17:55
-
-
Save sylumer/e04bf80f2586cab0debbc7caf7580b68 to your computer and use it in GitHub Desktop.
DOS Batch Script: Create Month Folders - Format "DD"
This file contains 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 Create a set of folders 01 to 12 in the current directory | |
FOR /L %%i IN (1,1,12) DO ( | |
IF %%i% LSS 10 ( | |
MKDIR "0%%i%" | |
) ELSE ( | |
MKDIR "%%i%" | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment