电脑c盘满了?看我如何给c盘减负,让你的电脑快到飞起!
时间:2023-01-02 11:48:54
我们在使用电脑的时候经常出现这样的一个问题:硬盘的空间越来越小,电脑运行越来越慢。尤其是做为系统盘的C盘,动不动提示空间不足,很是让人不爽。
如何清理c盘垃圾
今天小雨教大家一个快速清理C盘,为系统瘦身的方法,并且每次清理的时候只需要双击打开这个工具就可以一键清理了,非常方便。
下面图片是程序运行时的效果。
如何清理c盘垃圾
接下来小雨教大家一步步来制作这个工具。
第一步|打开记事本
通过【开始-所有程序-附件-记事本】或者直接按下快捷键【Win + R】打开运行,并输入【Notepad】并回车。
如何清理c盘垃圾
第二步:输入以下代码
@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 SettingsTemporary Internet Files*.*"
del /f /s /q "%userprofile%Local SettingsTemp*.*"
del /f /s /q "%userprofile%recent*.*"
echo 清除系统LJ完成!
echo. & pause
输入后的效果如下图所示:
如何清理c盘垃圾
第三步:保存成.bat文件
确认以上代码输入无误之后,点【文件-另存为】,在弹出的窗口中选择【保存类型】为“所有文件”(此操作非常重要),【文件名称】为“C盘瘦身.bat”,选择保存位置为桌面。
如何清理c盘垃圾
保存好了之后是下面这样的一个图标,如果图标的不是这样的,那有可能就是你在保存的时候没有修改【保存类型】,重新修改后保存即可:
如何清理c盘垃圾
第四步:双击运行
双击打开刚刚保存在桌面上的那个“C盘瘦身.bat”文件,就会自动开始清理系统的垃圾为C盘瘦身了。
以后每过一段时间双击运行一下这个文件就可以快速清理垃圾文件了。
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10系统电脑出现蓝屏提示错误代码asmtxhci.sys的解决方法
![](https://img.aspxhome.com/file/2023/28/a242051_0s.jpg)
电脑版wps文档如何将页眉的页码删除
![](https://img.aspxhome.com/file/2023/4/a183364_0s.png)
Win10系统怎么增加开机自动启动项?
![](https://img.aspxhome.com/file/2023/1/a276090_0s.jpg)
电脑显示已禁用IME且输入法打不出汉字怎么办?
![](https://img.aspxhome.com/file/2023/26/a225391_0s.jpg)
windows10死机怎么办?windows10死机处理教程
![](https://img.aspxhome.com/file/2023/9/48079_0s.jpg)
如何更改启动磁盘? Mac系统启动磁盘顺序的设置技巧
![](https://img.aspxhome.com/file/2023/8/a214348_0s.jpg)
Win10无法完成更新正在撤销更改请不要关闭你的计算机怎么办?
![](https://img.aspxhome.com/file/2023/6/50996_0s.png)
两种快速卸载Win10易升的实用小方法
![](https://img.aspxhome.com/file/2023/4/49024_0s.png)
Win10创造者更新可禁止Win32程序安装
![](https://img.aspxhome.com/file/2023/28/a242522_0s.jpg)
VMware虚拟机怎么进入Unity模式?VMware虚拟机Unity模式打开方法简述
![](https://img.aspxhome.com/file/2023/7/a330181_0s.jpg)
Windows 10装机应该选择哪个版本?Win10专业版企业版家庭版教育版区别介绍
![](https://img.aspxhome.com/file/2023/26/a222664_0s.png)
Word文档将插入的图片显示在文字中间
![](https://img.aspxhome.com/file/2023/6/32086_0s.png)
使用公式提取Excel中的日期后发现格式不对
Win10专业版更新提示错误代码80072efd怎么解决?
![](https://img.aspxhome.com/file/2023/26/a222942_0s.jpg)
Excel使用图标集并教你制作项目状态表
![](https://img.aspxhome.com/file/2023/5/a143245_0s.gif)
区块链全线崩盘:不懂这些你赚不到钱
![](https://img.aspxhome.com/file/2023/4/a305234_0s.jpg)
Mac系统基础教程:如何设置Mac电脑免密码自动登录?
![](https://img.aspxhome.com/file/2023/3/a203673_0s.jpeg)
Excel 如何显示日期天数
![](https://img.aspxhome.com/file/2023/5/a163395_0s.jpg)
PS新手教程 --如何使用ps将卡通图片转为粉笔画效果
![](https://img.aspxhome.com/file/2023/9/a202289_0s.jpeg)
win7工作组计算机不显示怎么办?Win7电脑工作组无法显示的解决方法
![](https://img.aspxhome.com/file/2023/30/a265360_0s.jpg)