千家信息网

如何进行C盘清理小程序制作

发表于:2026-11-05 作者:千家信息网编辑
千家信息网最后更新 2026年11月05日,如何进行C盘清理小程序制作,很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。引言:大家都知道,随着时间的推荐,我们电脑系统的
千家信息网最后更新 2026年11月05日如何进行C盘清理小程序制作

如何进行C盘清理小程序制作,很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。

引言:大家都知道,随着时间的推荐,我们电脑系统的C盘缓存的临时数据、无用数据会越来越多,这会导致我们的系统运行速度被大大拖慢,所有这里教大家怎么制作一个简单的清理C盘临时数据和无用数据的小程序。
制作步骤:

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

  2. 用记事本打开,然后编辑,写入以下代码:
    代码清单:

    @echo off echo 正在清理系统垃圾文件,请稍等......del /s /f /q c:\windows\temp\*.*rd /s /q c:windows\tempmd c:\windows\tempdel /s /f /q C:\WINDOWS\Prefetchdel /s /f /q %temp%\*.*rd /s /q %temp%md %temp%deltree /y c:\windows\tempor~1deltree /y c:\windows\tempdeltree /y c:\windows\tmpdeltree /y c:\windows\ff*.tmpdeltree /y c:\windows\historydeltree /y c:\windows\cookiesdeltree /y c:\windows\recentdeltree /y c:\windows\spool\printersdel /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%\recycled\*.*del /f /s /q  %windir%\*.bakdel /f /s /q  %windir%\prefetch\*.*rd /s /q %windir%\temp & md  %windir%\tempdel /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. 代码写好后保存。

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

看完上述内容是否对您有帮助呢?如果还想对相关知识有进一步的了解或阅读更多相关文章,请关注行业资讯频道,感谢您对的支持。

0