Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
21
Task/Make-directory-path/Batch-File/make-directory-path.bat
Normal file
21
Task/Make-directory-path/Batch-File/make-directory-path.bat
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
@echo off
|
||||
choice /M "Custom implementation?"
|
||||
if errorlevel 2 goto native
|
||||
goto custom
|
||||
|
||||
:native
|
||||
md %~1
|
||||
goto:eof
|
||||
|
||||
:custom
|
||||
::pushd stack will be discarded at endlocal or EOF
|
||||
setlocal
|
||||
set "dirpath=%~1"
|
||||
set dirpath="%dirpath:\=" "%"
|
||||
::resolve \ (filesystem root) at the start
|
||||
set "dirpath=%dirpath:"" "="\%"
|
||||
for %%i in (%dirpath%) do (
|
||||
md %%i
|
||||
pushd %%i
|
||||
)
|
||||
goto:eof
|
||||
Loading…
Add table
Add a link
Reference in a new issue