Skip to content

Instantly share code, notes, and snippets.

@sylumer
Created January 12, 2023 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sylumer/e04bf80f2586cab0debbc7caf7580b68 to your computer and use it in GitHub Desktop.
Save sylumer/e04bf80f2586cab0debbc7caf7580b68 to your computer and use it in GitHub Desktop.
DOS Batch Script: Create Month Folders - Format "DD"
@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