liaoguinan 当前离线
二级士官
评分人数
hfxiang 当前在线
上尉
@for %%a in (*) do @if "%%~fa" NEQ "%~f0" @md "%%~na">nul 2>nul&@move "%%a" ".\%%~na">nul 2>nul复制代码
TOP
77七 当前离线
中校
@echo off cd /d "%~dp0" for /f "delims=" %%i in ('dir /b /s /a-d *.pdf') do ( cd "%%~dpi" md "%%~ni" echo move "%%i" "%%~ni" move "%%i" "%%~ni" ) pause复制代码
@echo off cd /d "%~dp0" for /f "delims=" %%a in ('dir /b /ad') do ( pushd "%%a" for /f "delims=" %%i in ('dir /b /a-d *.pdf') do ( md "%%~ni" echo move "%%i" "%%~ni" move "%%i" "%%~ni" ) popd ) pause复制代码
qixiaobin0715 当前离线
大校
@echo off for /f "delims=" %%a in ('dir /b /s /a-d *.pdf') do ( md "%%~dpa%%~na">nul 2>nul move "%%a" "%%~dpa%%~na">nul 2>nul ) pause复制代码
@for /f %%a in ('dir *.pdf /b/s/a-d') do @if "%%~fa" NEQ "%~f0" @pushd "%%~dpa" &@(@for /f "delims=\" %%b in ("%%~dpa") do @if "%%~nb" NEQ "%%~na" @md "%%~dpna">nul 2>nul&@move "%%~fa" "%%~dpna\">nul 2>nul )&@popd复制代码