win10 开机自动清理垃圾

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文件复制进去。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值