本帖最后由 aloha20200628 于 2024-10-26 13:29 编辑
回复 1# sea1138 - @echo off &for /f "delims=-_—" %%a in ('dir/b/a-d "*-*.txt" "*—*.txt" "*_*.txt" ') do (
- for /f %%n in ('dir /b/a-d "%%a*"^|find /c /v "" ') do if %%n gtr 1 (
- md "%%a" &move /y "%%a*.txt" "%%a")) 2>nul
- if exist "*.txt" (md "others" &move /y "*.txt" "others") 2>nul
- pause&exit/b
复制代码
|