Do not run under the path where the ghost backup file is located!
:: Delete abnormal directories in the current path
for /f "delims=" %%a in ('dir/ad/b^|findstr /e "\."') do rd /q/s "%%a.\"
:: Delete abnormal directories in the current path, including subdirectories
for /f "delims=" %%a in ('dir/ad/s/b^|findstr /e "\."') do rd /q/s "%%a.\"
-----------------------------------------------------------------
Delete empty abnormal directories in the directory tree and display non-empty abnormal directories
for /f "delims=" %%a in ('dir/ad/s/b^|findstr /e "\."') do rd "%%a.\" 2>nul||echo %%a
[
Last edited by plp626 on 2008-2-29 at 08:57 PM ]