百科网

首页 > 科技数码

科技数码

教你Win7自己动手清理系统垃圾文件的方法

科技数码佚名2023-01-18

在我们日常使用电脑的过程中,遇到电脑出现卡顿或者网速不流畅,我们都会习惯性的打开杀毒软件,清理下系统的垃圾文件和缓存文件,那么我们能不能自己动手清理系统垃圾文件呢?下面小编就来给大家分享下Win7自己动手清理系统垃圾文件的方法。

1、首先了解下DEL命令:打开cmd,输入DEL /?出现以下解释:

2、新建一记事本(后缀为.txt),重命名,在这命名为“清除系统垃圾.txt”,输入以下程序:

01@echo off02echo 请勿关闭本窗口!03echo 正在清除系统垃圾文件,请稍等......04del /f /s /q %systemdrive%*.tmp05del /f /s /q %windir%prefetch*.* rd /s /q %windir%temp * md %windir%temp06del /f /s /q "%userprofile%Local SettingsTemp*.*"07del /f /s /q %systemdrive%*._mp08del /f /s /q %windir%*.bak09del /f /s /q %systemdrive%*.log10del /f /s /q %systemdrive%*.gid11del /f /s /q %systemdrive%*.chk12del /f /s /q %systemdrive%*.old13del /f /s /q %systemdrive%recycled*.*14del /f /q %userprofile%cookies*.*15del /f /q %userprofile%recent*.*16del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"17del /f /s /q "%userprofile%recent*.*"18echo 清除系统垃圾完成!复制代码@echo offecho 请勿关闭本窗口!echo 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%*.tmpdel /f /s /q %windir%prefetch*.* rd /s /q %windir%temp * md %windir%tempdel /f /s /q "%userprofile%Local SettingsTemp*.*"del /f /s /q %systemdrive%*._mpdel /f /s /q %windir%*.bakdel /f /s /q %systemdrive%*.logdel /f /s /q %systemdrive%*.giddel /f /s /q %systemdrive%*.chkdel /f /s /q %systemdrive%*.olddel /f /s /q %systemdrive%recycled*.*del /f /q %userprofile%cookies*.*del /f /q %userprofile%recent*.*del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"del /f /s /q "%userprofile%recent*.*"echo 清除系统垃圾完成!