多语言展示
当前在线:1585今日阅读:57今日分享:41

怎样清除系统垃圾

随着电脑使用时间的增加,你是否会发现电脑速度越来越慢。这是因为系统中存在太多垃圾,你或许会下载优化大师来处理,但那样的话是否会太麻烦,何不试试自己编写一个程序来清除系统垃圾?
步骤/方法
1

首先新建一个记事本,主要是将txt文件弄成bat的可执行文件即可,如下图所示:

2

然后粘贴以下命令   @echo offpauseecho 正在清理系统垃圾文件,请稍等......del /f /s /q %systemdrive%*.tmpdel /f /s /q %systemdrive%*._mpdel /f /s /q %systemdrive%*.logdel /f /s /q %systemdrive%*.giddel /f /s /q %systemdrive%*.chkdel /f /s /q %systemdrive%*.olddel /f /s /q %systemdrive% ecycled*.*del /f /s /q %windir%*.bakdel /f /s /q %windir%prefetch*.*rd /s /q %windir% emp & md %windir% empdel /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 清理系统垃圾完成!echo. & pause

3

然后保存为你喜欢的名称.bat,如优化系统.bat;如下图所示:

4

如果想清除垃圾,直接点击运行即可,如下图所示:

推荐信息