1. 自動清理資源回收筒(http://www.jb51.net/os/win10/490932.html)
- 1、按下“Win+R”組合鍵打開運作,在框中輸入:%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup 點選确定打啟動檔案夾;
- 2、在啟動檔案夾中單擊右鍵,依次選擇“建立”—“快捷方式”;
- 3、在“輸入對象的位置”框中拷貝以下代碼:cmd.exe /c "echo Y|PowerShell.exe -NoProfile -Command Clear-RecycleBin" 點選下一步;
- 4、将快捷方式的名稱 框中随便輸入一個名字,點選完成;
2. 自動清理垃圾(https://zhidao.baidu.com/question/386779056.html)
下面複制到記事本中,更改字尾名為bat
@echo off
echo 正在清除系統垃圾檔案,請稍等......
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 清除系統LJ完成!
echo. & pause
找到開始菜單,找到啟動菜單,将上述bat檔案複制進去。