C盘清理小程序制做

 

引言:你们都知道,随着时间的推荐,咱们电脑系统的C盘缓存的临时数据、无用数据会愈来愈多,这会致使咱们的系统运行速度被大大拖慢,全部这里教你们怎么制做一个简单的清理C盘临时数据和无用数据的小程序。小程序

制做步骤:

1. 新建一个TXT文件,命名为:系统清理.batwindows

2.  用记事本打开,而后编辑,写入如下代码:缓存

代码清单:cookie

@echo off 

echo 正在清理系统垃圾文件,请稍等......

del /s /f /q c:\windows\temp\*.*

rd /s /q c:windows\temp

md c:\windows\temp

del /s /f /q C:\WINDOWS\Prefetch

del /s /f /q %temp%\*.*

rd /s /q %temp%

md %temp%

deltree /y c:\windows\tempor~1

deltree /y c:\windows\temp

deltree /y c:\windows\tmp

deltree /y c:\windows\ff*.tmp

deltree /y c:\windows\history

deltree /y c:\windows\cookies

deltree /y c:\windows\recent

deltree /y c:\windows\spool\printers

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\*.*"

del c:\WIN386.SWP

echo系统清除结束!

echo. & pause

3. 代码写好后保存。fetch

4. 使用的时候双击运行便可。spa

相关文章
相关标签/搜索