admin管理员组

文章数量:1624788


操作步骤:

步骤一:新建文本文件

在电脑桌面新建一个.txt格式的文本文件,文件名可以自定义。

步骤二:拷贝指令

将以下脚本拷贝到文件里,然后修改文件格式为.bat格式,然后保存。

在双击运行.bat文件,即可清理电脑C盘运行的临时文件".log......."

电脑C盘清理脚本:
 

@echo off

echo is start cleaning , please wait ......

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

echo clean system c is ok!

echo. & pause

清理结束后出现这个,即是清理完成!

本文标签: 脚本windowsC