使用bat批处理命令清理windows
相信大家都知道bat格式档案是批处理档案,是一种简化的指令码语言。最近有笔记本win系统使用者向小编反映,在win系统上如何做到像智能手机一样一键清理垃圾呢?当然可以了,我们可以使用批处理命令就可以做到,下面请大家跟小编一起来学习一下win批处理命令清理垃圾的方法。
方法/步骤:
1、首先在桌面新建一个txt档案,右键空白处开启选单,选择“新建--文字文件”;

2、开启刚刚新建的txt档案,复制如下命令程式码到txt档案中;

@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% ecycled*.*
del /f /s /q %windir%*.bak
del /f /s /q %windir%prefetch*.*
rd /s /q %windir% emp & md %windir% emp
del /f /q %userprofile%cookies*.*
del /f /q %userprofile% ecent*.*
del /f /s /q “%userprofile%Local SettingsTemporary Internet Files*.*”
del /f /s /q “%userprofile%Local SettingsTemp*.*”
del /f /s /q “%userprofile% ecent*.*”
echo 清除系统LJ完成!
echo. & pause
3、然后点选“档案”开启选单,选择“另存为”,如图所示;

4、开启“另存为”视窗后,把“储存型别”更改为“所有档案”,将“档名”改为“档名.bat”的形式,然后点选“储存”;

5、然后桌面出现了一个bat格式的档案;

6、点选“一键清理.bat”即可开始清理系统垃圾,等待清理完成后按任意键退出。

以上就是win批处理命令清理垃圾的方法的全部内容了,有了该bat档案就可以实现一键清理了!有需要的win使用者不妨试试此方法。
获取更多更新文章技术,感觉此文章对您有好处,感快动动小手收藏转发+关注吧!!!