フルパスのディレクトリの作成

フルパスに記載している未作成のディレクトリを一括作成するツールです。
ディレクトリの深さは25まで。

```bash:mkfdir.bat
@echo off
if "%~1" == "" echo 使用方法：%~nx0 ^<フォルダのフルパス^> & goto :EOF
SETLOCAL ENABLEEXTENSIONS
set __path=%~1
for /f "tokens=1-26* delims=\" %%a in ("%__path%") do (
    dir "%%a" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a"
    if ERRORLEVEL 1 goto :EOF
    if "%%b"=="" goto THE_END
    dir "%%a\%%b" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b"
    if ERRORLEVEL 1 goto :EOF
    if "%%c"=="" goto THE_END
    dir "%%a\%%b\%%c" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c"
    if ERRORLEVEL 1 goto :EOF
    if "%%d"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d"
    if ERRORLEVEL 1 goto :EOF
    if "%%e"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e"
    if ERRORLEVEL 1 goto :EOF
    if "%%f"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f"
    if ERRORLEVEL 1 goto :EOF
    if "%%g"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g"
    if ERRORLEVEL 1 goto :EOF
    if "%%h"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h"
    if ERRORLEVEL 1 goto :EOF
    if "%%i"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i"
    if ERRORLEVEL 1 goto :EOF
    if "%%j"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j"
    if ERRORLEVEL 1 goto :EOF
    if "%%k"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k"
    if ERRORLEVEL 1 goto :EOF
    if "%%l"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l"
    if ERRORLEVEL 1 goto :EOF
    if "%%m"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m"
    if ERRORLEVEL 1 goto :EOF
    if "%%n"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n"
    if ERRORLEVEL 1 goto :EOF
    if "%%o"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o"
    if ERRORLEVEL 1 goto :EOF
    if "%%p"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p"
    if ERRORLEVEL 1 goto :EOF
    if "%%q"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q"
    if ERRORLEVEL 1 goto :EOF
    if "%%r"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r"
    if ERRORLEVEL 1 goto :EOF
    if "%%s"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s"
    if ERRORLEVEL 1 goto :EOF
    if "%%t"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t"
    if ERRORLEVEL 1 goto :EOF
    if "%%u"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u"
    if ERRORLEVEL 1 goto :EOF
    if "%%v"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u\%%v" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u\%%v"
    if ERRORLEVEL 1 goto :EOF
    if "%%w"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u\%%v\%%w" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u\%%v\%%w"
    if ERRORLEVEL 1 goto :EOF
    if "%%x"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u\%%v\%%w\%%x" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u\%%v\%%w\%%x"
    if ERRORLEVEL 1 goto :EOF
    if "%%y"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u\%%v\%%w\%%x\%%y" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u\%%v\%%w\%%x\%%y"
    if ERRORLEVEL 1 goto :EOF
    if "%%z"=="" goto THE_END
    dir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u\%%v\%%w\%%x\%%y\%%z" >nul 2>&1
    if ERRORLEVEL 1 mkdir "%%a\%%b\%%c\%%d\%%e\%%f\%%g\%%h\%%i\%%j\%%k\%%l\%%m\%%n\%%o\%%p\%%q\%%r\%%s\%%t\%%u\%%v\%%w\%%x\%%y\%%z"
    if ERRORLEVEL 1 goto :EOF
)
:THE_END
SETLOCAL DISABLEEXTENSIONS
dir %1
```

:notes: