本帖最后由 qixiaobin0715 于 2024-4-11 16:58 编辑
- @echo off
- for /f "delims=" %%i in ('dir /s /b /ad') do (
- set n=
- for /f "delims=" %%j in ('dir /b /ad "%%i"') do set n=true
- if not defined n (
- set m=
- for /f "delims=" %%k in ('dir /b /a-d *.symlink *.mp4 *.mkv') do (
- set m=true
- move "%%i\%%k" "%%i\.."
- )
- if defined m rd /s /q "%%i"
- )
- )
- pause
复制代码
|