世界上最便宜的公主裙:快速清除电脑垃圾

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/05 19:12:54
快速清除电脑垃圾, 使电脑的速度运行>

用windows优化大师吧!太平洋就有下载~~

::把以下内容保存到记事本中,修改扩展名为BAT.然后双击即可减肥.
DRWTSN32
sysdm.cpl
:: 设置本批处理运行时的一些环境变量:tempdir为临时的工作目录,必须可写;bak为备份注册表需要用到的目录,必须可写
set tempdir=%temp%
set bak=d:\syssoft\system\regbak

:: 如果不存在上述目录,则建立相应的目录
if not exist %tempdir%\. md %tempdir%
if not exist %bak%\. md %bak%

:: 删除Windows的DllCache(%windir%\system32\dllcache)
sfc /purgecache

:: 删除%windir%目录下的一些内容(注:这些内容是不建议删除的,用于极度减肥,建议删除之前做备份)
rd /s /q "%windir%\Downloaded Installations"
del /f /q /s "%windir%\Help\*.*"
del /f /q /s "%windir%\ime\CHTIME\*.*"
::del /f /q /s "%windir%\Media\*.*"
del /f /q /s "%windir%\system32\LogFiles\*.*"

:: 微软仓颉输入法
del /f /q /s "%windir%\system32\IME\CINTLGNT\*.*"

:: 微软拼音输入法
::del /f /q /s "%windir%\system32\IME\PINTLGNT\*.*"
::del /f /q /s "%windir%\system32\IMSC40A.IME"

:: 微软注音输入法
del /f /q /s "%windir%\system32\IME\TINTLGNT\*.*"

:: 其它Windows内置输入法
for %%I in (chajei.ime CINTLGNT.IME dayi.ime imekr61.ime imjp81.ime MSCTFIME.IME phon.ime PINTLGNT.IME quick.ime romanime.ime TINTLGNT.IME unicdime.ime winar30.ime WINGB.IME winime.ime WINPY.IME WINSP.IME WINZM.IME) do if exist "%windir%\system32\%%I" del /f /q "%windir%\system32\%%I"

:: 删除Windows系统分区上的其它垃圾文件
if exist c:\io.sys attrib -s -r -h c:\io.sys
if exist c:\msdos.sys attrib -s -r -h c:\msdos.sys
if exist c:\io.sys del /f /q c:\io.sys
if exist c:\msdos.sys del /f /q c:\msdos.sys
del /f /q /s %windir%\temp\*.*
del /f /q /s %windir%\LastGood\*.*
del /f /q /s %windir%\LastGood.tmp\*.*
del /f /q /s %windir%\*.log
del /f /q /s %windir%\*.dmp
del /f /q /s %windir%\*.tmp
del /f /q /s %windir%\*.bak
del /f /q /s %windir%\Help\Tours\*.*
rd /s /q %windir%\Help\Tours
del /f /q /s %windir%\minidump\*.*
del /f /q /s %windir%\*.old
del /f /q /s %windir%\*.query
del /f /q %windir%\*.txt
del /f /q /s "%userprofile%\Recent\*.*"
del /f /q /s "%userprofile%\NetHood\*.*"
del /f /q /s "%userprofile%\Local Settings\Application Data\*.*"

:: 删除Windows打补丁时留下的反安装目录,一般是%windir%目录下以$开头的目录,删除的内容会记录在%tempdir%\rmlist.txt中,下同
lmod > nul
dir /a/b %windir%\$*.* | lmod /l* rd /s /q %windir%\[] > %tempdir%\temp.bat
call %tempdir%\temp.bat
type %tempdir%\temp.bat > %tempdir%\Rmlist.txt
del %tempdir%\temp.bat

:: 删除%windir%\ime目录下的日本、韩国及繁体输入法文件
:: echo sfc /purgecache > %tempdir%\temp.bat
dir /a-d /s /b %windir%\ime\imjp8_1 %windir%\ime\imkr6_1 %windir%\ime\CHTIME | lmod /l* del /f /q [] >> %tempdir%\temp.bat
call %tempdir%\temp.bat
type %tempdir%\temp.bat >> %tempdir%\Rmlist.txt
del %tempdir%\temp.bat

:: 删除%windir%\Prefetch目录下的预读取文件
del /f /q %windir%\Prefetch\*.*

:: Unregist Windows xp's zipfldr.dll去掉zip文件夹功能
:: 操作步骤:首先运行下面的命令,运行完成后千万不要双击zip文件(否则会重新打开XP的zip文件夹功能),立刻打开Winrar,在设置中将所有文件类型都关联到WinRAR。
regsvr32 /u /s zipfldr.dll

:: 减少Windows XP的启动时间,通过修改注册表中的PrefetchParameters参数(原值为3)
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v EnablePrefetcher /t REG_DWORD /d 5 /f

:: 加速xp的开关机,缩短杀掉服务和进程的等待时间,原值分别为20000, 20000, 12000
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v WaitToKillServiceTimeout /t REG_SZ /d 1000 /f
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v WaitToKillAppTimeout /t REG_SZ /d 1000 /f
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v HungAppTimeout /t REG_SZ /d 200 /f

:: 关闭计算机时自动结束不响应的任务(原值为0)
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v AutoEndTasks /t REG_SZ /d 1 /f

:: 备份并删除[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]

硬盘从新分区是最好的清理工具.