Skip to content

Instantly share code, notes, and snippets.

@jacobhackl
Last active May 3, 2016 15:28
Show Gist options
  • Save jacobhackl/5ec63ca0d535bb6e6e5b7cadbdbb8c26 to your computer and use it in GitHub Desktop.
Save jacobhackl/5ec63ca0d535bb6e6e5b7cadbdbb8c26 to your computer and use it in GitHub Desktop.
Export the md command for all folders in a location
setlocal
set "location=d:\"
for /F "delims=" %%a in ('dir /s /ad /b "%location%"') do (
echo md %%a >> createDirectorys.bat
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment