autoav 当前离线
上等兵
@echo off Setlocal enabledelayedexpansion FOR /D %%i IN (*) DO ( move %%i\* .\ )复制代码
qixiaobin0715 当前离线
大校
@echo off for /d %%a in (*) do ( for /f %%i in ('dir "%%a"^|find " 1 个文件"') do ( move "%%a\*.txt" "%%a.txt" rd "%%a" ) ) pause复制代码
TOP