windowsxp系统垃圾清理脚本怎么写
时间:2023-12-26 03:10:31
1、命令行清理方式部分:
以下命令主要清理
临时文件:*.tmp,*.syd,*.$$$,*.@@@,*._mp,*.gid,*.~*,*.gts
备份文件:*.bak,*.old,*.wbk,*.xlk,*.ckr_
文件碎片:*.chk
%windir%emp Windows的临时文件夹
%windir%prefetch 运行程序的记录文件
请在“开始”-->“所有程序”-->“附件”-->“命令提示符”中运行下面的代码
@echo off
echo 正在清除系统垃圾文件,请稍等......
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%*.syd
del /f /s /q %systemdrive%*.$$$
del /f /s /q %systemdrive%*.@@@
del /f /s /q %systemdrive%*.~*
del /f /s /q %systemdrive%*.gts
del /f /s /q %systemdrive%*.bak
del /f /s /q %systemdrive%*.old
del /f /s /q %systemdrive%*.wbk
del /f /s /q %systemdrive%*.xlk
del /f /s /q %systemdrive%*.ckr_
del /f /s /q %windir%prefetch*.*
rd /s /q %windir%emp
echo 清除系统垃圾完成!
echo. & pause
2、手动清理方式部分:
(1)删除%windir%下的所有以$开头的文件。(补丁的反安装)
(2)删除%windir%installer下的所有*.msi文件,文件夹一定不要删。(msi程序安装后剩下的一些垃圾)
(3)删除%windir%esourceshemes下,除Windows Classic.theme的所有主题。(主题文件)
(4)删除%windir%SoftwareDistributionDownload下的所有文件 (下载补丁临时存放点)
(5)删除%userprofile%Local SettingsTemp下的所有文件。(临时文件)
(6)删除系统分区下的 Program FilesWindowsUpdate的所有文件。(XP升级留下的垃圾)
(7)删除系统分区下的 Program FilesInstallShield Installation Information的所有文件 (安装程序留下的垃圾)
3、程序清理方式部分:
(1)清理游戏和桌面墙纸
在“控制面板”中的“添加删除程序”中的“添加删除windows组件”中的“附件和工具”中删除“游戏”和“附件”中的“桌面墙纸”
然后再执行:rd /s /q %windir%webwallpaper
(2)清理Internet残留文件(保证你使用的是IE7)
在“控制面板”中的“Internet选项”中,点击“常规”下的“删除”,然后点击全部删除,打上勾、点是;仍然在“Internet选项”中,点击“内容”,点击“清除SSL状态”,然后点击“自动完成”的“设置”,点“确定”
(3)清理事件查看器
在“控制面板”中的“管理工具”中,点击“事件查看器”,对每一项都点右键中的“清除所有事件”
(4)清理操作文件和应用程序产生的快捷链接
在“控制面板”中的“任务栏和[开始]菜单”中的“开始菜单”中点击“[开始]菜单:自定义”,在“常规”和“高级”中都点击“清除列表”
(5)清理控制台
在“开始”-->“所有程序”-->“附件”-->“系统工具”中运行“磁盘碎片整理程序”,在“文件”的“选项”中点击“删除文件”,顺便对C盘进行“磁盘整理”。如果是FAT16/32文件系统记得要转换成NTFS文件系统,否则时间会很漫长的。转换请使用convert命令:
convert:将FAT卷转换为NTFS
CONVERT volume /FS:NTFS [/V] [/CvtArea:filename] [/NoSecurity] [/X]
c:>convert "需要转换的盘符" /FS:NTFS
例如: c:>convert e: /FS:NTFS
关注系统部落论坛(http://www.eshendu.com),锁定系统部落官网
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10如何免费安装其他账户已购买应用
![](https://img.aspxhome.com/file/2023/26/a227419_0s.jpg)
Win10系统电脑安装不了软件是什么原因?
![](https://img.aspxhome.com/file/2023/1/a280386_0s.png)
论文排版的基本知识
Excel如何将自定义图表另存为模板?Excel将自定义图表另存为模板方法
![](https://img.aspxhome.com/file/2023/4/a153104_0s.png)
往Excel2013单元格快速插入特殊符号
![](https://img.aspxhome.com/file/2023/3/38403_0s.jpg)
Win10系统任务栏开始菜单按钮消失的解决方法
![](https://img.aspxhome.com/file/2023/3/a294623_0s.jpg)
excel如何制作雷达图?excel雷达图制作方法
usb4.0传输速度是多少_usb4.0传输速度详细介绍
![](https://img.aspxhome.com/file/2023/3/a300185_0s.jpg)
Win10版PowerPoint Mobile即将迎来协作编辑功能
如何快速查找wps表 并以模糊或准确的方式查找数据
![](https://img.aspxhome.com/file/2023/9/a169259_0s.gif)
Word文档怎么设置只读模式防止被修改
windows7系统下在关机时如何自动清理垃圾文件
![](https://img.aspxhome.com/file/2023/29/a254736_0s.jpg)
PowerPoint2010轻松2步即可快速插入公式
![](https://img.aspxhome.com/file/2023/10/a345231_0s.png)
连尚读书APP如何清理缓存?连尚读书APP清理缓存的方法
![](https://img.aspxhome.com/file/2023/8/a334994_0s.jpg)
电脑总是重启怎么办 电脑经常自动重启的解决方法
wps office文字怎么粘贴?
![](https://img.aspxhome.com/file/2023/2/a168092_0s.png)
intel处理器怎么修复?
![](https://img.aspxhome.com/file/2023/3/a299349_0s.png)
Win10 20H2开机很慢怎么办?Win10 20H2缩短开机时间解决方法
![](https://img.aspxhome.com/file/2023/1/a277998_0s.png)
Win10专业版电脑系统怎么给c盘扩容?Win10系统盘扩容方法教程
![](https://img.aspxhome.com/file/2023/1/49901_0s.jpg)