回复 3# mmm8422616
- @echo off
- cd /d "%~dp0"
- set str=symlink
- for /f "delims=" %%d in ('dir /b /s /ad') do (
- dir /b /ad "%%d" |findstr . 1>nul || set _"%%d"=1
- )
- for /f "delims=" %%d in ('dir /b /s /ad') do (
- if defined _"%%d" (
- if exist "%%d\*.%str%" (
- move "%%d\*.%str%" "%%d\.."
- del /q "%%d\*"
- rd "%%d"
- )
- )
- )
- pause
复制代码
|