freesoft00 当前离线
六级士官
评分人数
xxpinqz (YiFeng)当前离线
中校
@echo off set "var1=%~1" if not defined var1 set /p "var1=输入:" for %%a in ("%var1%") do md "%%~dpa" 2>nul复制代码
TOP
522235677 (张三)当前离线
少校
@echo off set /p var1=输入: if not exist %var1% md %var1%复制代码
PowerShell (powershell传教士)当前离线
上尉
$var1 = read-host "输入一个完成文件的路径" $var2 = Resolve-Path $var1 mkdir $var2复制代码
apang 当前离线
上将
@echo off if "%~1"=="" (set /p a=输入:) else set "a=%~1" md "%a%\.." 2>nul pause复制代码
@echo off set /p var1=输入: for %%a in (%var1%) do if not exist "%%~dpa" md "%%~dpa"复制代码
@echo off set /p var1=输入: call :1 %var1% pause :1 if not exist "%~dp1" md "%~dp1"复制代码