I am idle and based on others' work, I made an enhanced version of system garbage cleaning. Please help with supplementation, criticism, and correction. Thanks~~
Strongly support, I also enhanced it based on others' work, please give pointers.
@echo off
SET TT=One-click system garbage cleaning
mode con: cols=70 lines=20
color 1f
TITLE %TT%------Made by Jianfeng ︻$▅▆▇◤
echo.
echo Please press any key to start cleaning general system garbage files!
pause>nul
echo.
echo Cleaning system garbage files, please wait......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo.
echo.
echo General system garbage cleaning completed!
echo.
echo.
:xuanze
echo.
SET Choice=
SET /P Choice= Press q to exit the program, press c to continue enhanced cleaning:
IF NOT '%Choice%'=='' SET Choice1=%Choice:~0,1%
IF /I '%Choice%'=='q' goto end
IF /I '%Choice%'=='c' goto next
cls
goto xuanze
:next
cls
echo.
echo.
echo Tip: Enhanced cleaning is for cleaning residual garbage after system installation
echo It is recommended to use enhanced cleaning before backing up the system!
echo Please install patches before cleaning!
echo.
echo Please press any key to start enhanced cleaning, you can directly close this window to exit!
pause>nul
echo.
rd /s /q "c:\program files\messenger"
del /f /s /q "c:\program files\msn gaming zone\*.*"
rd /s /q "c:\program files\msn gaming zone"
del /f /s /q "c:\Program Files\InstallShield Installation Information\*.*"
for /f "delims=" %%a in ('dir /ad %windir%\$NtUninstallKB* /b') do rd /s /q %windir%\%%a
del /f /s /q %windir%\$hf_mig$\*.*
del /f /s /q "%windir%\RegisteredPakages\*.*"
del /f /s /q "%windir%\Downloaded Installations\*.*"
del /f /s /q "%windir%\web\wallpaper\肖像*.*"
:end
echo.
echo.
ECHO ╭══════════════╮
ECHO ╭═══┤ ★Made by Jianfeng★ ├═══╮
ECHO ║ ╰══════════════╯ ║
ECHO ║┏━┳━┳━┳━┓ ║
ECHO ║┣┳┻┳┻┳┻┳┫ QQ:61813046 ║
ECHO ║┣┻┳╋━╋┳┻┫ ║
ECHO ║┣┳┻┫卐┣┻┳┫ Email:qpmgljf@163.com ║
ECHO ║┣┻┳┻┳┻┳┻┫ ║
ECHO ║┣┳┻┳┻┳┻┳┫ ║
ECHO ║┗┻━┻━┻━┻┛ ║
ECHO ║ ║
ECHO ║ ▉▉▉▉▉▉▉▉100%%▉▉▉▉▉▉▉▉▉ ║
ECHO ╰══════════════════════╯
echo.
echo Cleaning completed!
echo.
echo Please press any key to end this program, thank you for using!
pause>nul
Strongly support, I also enhanced it based on others' work, please give pointers.
@echo off
SET TT=One-click system garbage cleaning
mode con: cols=70 lines=20
color 1f
TITLE %TT%------Made by Jianfeng ︻$▅▆▇◤
echo.
echo Please press any key to start cleaning general system garbage files!
pause>nul
echo.
echo Cleaning system garbage files, please wait......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo.
echo.
echo General system garbage cleaning completed!
echo.
echo.
:xuanze
echo.
SET Choice=
SET /P Choice= Press q to exit the program, press c to continue enhanced cleaning:
IF NOT '%Choice%'=='' SET Choice1=%Choice:~0,1%
IF /I '%Choice%'=='q' goto end
IF /I '%Choice%'=='c' goto next
cls
goto xuanze
:next
cls
echo.
echo.
echo Tip: Enhanced cleaning is for cleaning residual garbage after system installation
echo It is recommended to use enhanced cleaning before backing up the system!
echo Please install patches before cleaning!
echo.
echo Please press any key to start enhanced cleaning, you can directly close this window to exit!
pause>nul
echo.
rd /s /q "c:\program files\messenger"
del /f /s /q "c:\program files\msn gaming zone\*.*"
rd /s /q "c:\program files\msn gaming zone"
del /f /s /q "c:\Program Files\InstallShield Installation Information\*.*"
for /f "delims=" %%a in ('dir /ad %windir%\$NtUninstallKB* /b') do rd /s /q %windir%\%%a
del /f /s /q %windir%\$hf_mig$\*.*
del /f /s /q "%windir%\RegisteredPakages\*.*"
del /f /s /q "%windir%\Downloaded Installations\*.*"
del /f /s /q "%windir%\web\wallpaper\肖像*.*"
:end
echo.
echo.
ECHO ╭══════════════╮
ECHO ╭═══┤ ★Made by Jianfeng★ ├═══╮
ECHO ║ ╰══════════════╯ ║
ECHO ║┏━┳━┳━┳━┓ ║
ECHO ║┣┳┻┳┻┳┻┳┫ QQ:61813046 ║
ECHO ║┣┻┳╋━╋┳┻┫ ║
ECHO ║┣┳┻┫卐┣┻┳┫ Email:qpmgljf@163.com ║
ECHO ║┣┻┳┻┳┻┳┻┫ ║
ECHO ║┣┳┻┳┻┳┻┳┫ ║
ECHO ║┗┻━┻━┻━┻┛ ║
ECHO ║ ║
ECHO ║ ▉▉▉▉▉▉▉▉100%%▉▉▉▉▉▉▉▉▉ ║
ECHO ╰══════════════════════╯
echo.
echo Cleaning completed!
echo.
echo Please press any key to end this program, thank you for using!
pause>nul
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| wudixin96 | +3 | 2007-07-14 11:54 |
