1. 程式人生 > 其它 >Windows 10 清除檔案

Windows 10 清除檔案

C:\Windows\SoftwareDistribution\Download

@echo off
echo 專門為windows10而寫,因而更專業!按任意鍵清理您的系統垃圾!
echo                       清理C盤

set /p input=請選擇(1)清理系統垃圾(2)專清騰訊垃圾(3)直接退出

if "%input%"=="1" goto one
if "%input%"=="2" goto two
if "%input%"=="3" goto three

:one 
del /f /s /q "%userprofile%\AppData\Local\Temp\*.*
" del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\INetCache\IE\*.*" del /f /s /q "%windir%\Offline Web Pages\*.*" del /f /s /q "%userprofile%\AppData\Local\Steam\htmlcache\*.*" del /f /s /q "%systemdrive%\*.old" 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 "%windir%\SoftwareDistribution\download\*.*" del /f /s /q "%windir%\Prefetch\*.*" del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\INetCookies\*.*" del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\INetCookies\Low\*.*
" pause&echo 系統垃圾清理完畢 exit :two TASKKILL /f /IM "Tencent TenioDL for Game.exe" TASKKILL /f /IM "QQMicroGameBoxTray.exe" TASKKILL /f /IM "QQMicroGameBoxService.exe" del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMGBDownload\*.*" del /f /s /q "%userprofile%\AppData\Local\Tencent\Cross\*.*" del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMicroGameBox\*.*" del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMiniGameBox\*.*" del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMiniDL\*.*" del /f /s /q "%userprofile%\AppData\Roaming\Tencent\遊戲人生cross\*.*" del /f /s /q "%userprofile%\AppData\Local\Tencent\QQPet\*.*" del /f /s /q "%systemdrive%\Program Files (x86)\Tencent\QQMicroGameBoxService\*.*" del /f /s /q "%userprofile%\Roaming\Tencent\Logs\*.*" del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQGAMETempest\Download\*.*" del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQ\Temp\*.*" pause&echo 騰訊垃圾清理完畢 exit :three exit