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文件复制进去。