Severe support, I also strengthened it on someone else's basis, please give your advice.
@echo off
SET TT=One-click system junk file cleanup
mode con: cols=70 lines=20
color 1f
TITLE %TT%------Made by Jianfeng ︻$▅▆▇◤
echo.
echo Please press any key to start cleaning general system junk files!
pause>nul
echo.
echo Cleaning system junk 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 junk cleanup completed!
echo.
echo.
:xuanze
echo.
SET Choice=
SET /P Choice= Press q to exit the program, press c to continue enhanced cleanup:
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 cleanup is used to clean up residual junk after system installation
echo It is recommended to use enhanced cleanup before backing up the system!
echo Please install patches before cleaning!
echo.
echo Please press any key to start enhanced cleanup, 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 Cleanup completed!
echo.
echo Please press any key to end this program, thank you for using!
pause>nul
@echo off
SET TT=One-click system junk file cleanup
mode con: cols=70 lines=20
color 1f
TITLE %TT%------Made by Jianfeng ︻$▅▆▇◤
echo.
echo Please press any key to start cleaning general system junk files!
pause>nul
echo.
echo Cleaning system junk 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 junk cleanup completed!
echo.
echo.
:xuanze
echo.
SET Choice=
SET /P Choice= Press q to exit the program, press c to continue enhanced cleanup:
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 cleanup is used to clean up residual junk after system installation
echo It is recommended to use enhanced cleanup before backing up the system!
echo Please install patches before cleaning!
echo.
echo Please press any key to start enhanced cleanup, 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 Cleanup completed!
echo.
echo Please press any key to end this program, thank you for using!
pause>nul
