超强XP垃圾清理.bat源码! win7清理垃圾bat
color 3b
title清除XP系统垃圾工具
echo 正在清除系统垃圾文件,请稍等......
rem 提示部份软件卸载需LOG文件,清理掉后就无法卸载
if exist "%windir%*.log" del /f /s /q "%windir%*.log"2>nul
if exist "%systemdrive%*.log" del /f /s /q "%systemdrive%*.log"2>nul
if exist "%systemdrive%*.tmp" del /f /s /q "%systemdrive%*.tmp"2>nul
if exist "%systemdrive%*._mp" del /f /s /q "%systemdrive%*._mp"2>nul
if exist "%systemdrive%*.gid" del /f /s /q "%systemdrive%*.gid"2>nul
if exist "%systemdrive%*.chk" del /f /s /q "%systemdrive%*.chk"2>nul
if exist "%systemdrive%*.old" del /f /s /q "%systemdrive%*.old"2>nul
if exist "%systemdrive%*.ftg" del /f /s /q "%systemdrive%*.ftg"2>nul
if exist "%systemdrive%*.fts" del /f /s /q "%systemdrive%*.fts"2>nul
if exist "%systemdrive%*._mp" del /f /s /q "%systemdrive%*._mp"2>nul
if exist "%systemdrive%*.syd" del /f /s /q "%systemdrive%*.syd"2>nul
if exist "%systemdrive%*.ms" del /f /s /q "%systemdrive%*.ms"2>nul
if exist "%systemdrive%*.diz" del /f /s /q "%systemdrive%*.diz"2>nul
if exist "%systemdrive%*.??$" del /f /s /q "%systemdrive%*.??$"2>nul
if exist "%systemdrive%*.??~" del /f /s /q "%systemdrive%*.??~"2>nul
if exist "%systemdrive%*.$$$" del /f /s /q "%systemdrive%*.$$$"2>nul
if exist "%systemdrive%*.~*" del /f /s /q "%systemdrive%*.~*"2>nul
if exist "%systemdrive%*.@@@" del /f /s /q "%systemdrive%*.@@@"2>nul
if exist "%systemdrive%recycled*.*" del /f /s /q%systemdrive%recycled*.* 2>nul
if exist "%windir%*.bak" del /f /s /q %windir%*.bak2>nul
if exist "%windir%*.tmp" del /f /s /q %windir%*.tmp2>nul
if exist "%windir%SoftwareDistributionDownload*.*" del /f /s /q%windir%SoftwareDistributionDownload*.*2>nul
if exist "%systemroot%temp*.*" del /a /f /s /q"%systemroot%temp*.*" 2>nul
if exist "%systemroot%Prefetch*.*" del /a /f /s /q"%systemroot%Prefetch*.*" 2>nul
if exist "%systemroot%minidump*.*" del /f /q /s /a"%systemroot%minidump*.*" 2>nul
if exist "%systemroot%*.dmp" del /a /f /s /q "%systemroot%*.dmp"2>nul
if exist "%systemroot%*.tmp" del /a /f /s /q "%systemroot%*.tmp"2>nul
if exist "%systemroot%*._mp" del /a /f /s /q "%systemroot%*._mp"2>nul
if exist "%systemroot%*.gid" del /a /f /s /q "%systemroot%*.gid"2>nul
if exist "%systemroot%*.bak" del /a /f /s /q "%systemroot%*.bak"2>nul
if exist "%systemroot%*.old" del /a /f /s /q "%systemroot%*.old"2>nul
if exist "%systemroot%*.query" del /a /f /s /q"%systemroot%*.query" 2>nul
rd /s /q %windir%temp & md %windir%temp
if exist "%userprofile%Local SettingsTemp*.*" del /f /s /q"%userprofile%Local SettingsTemp*.*" 2>nul
if exist "%userprofile%recent*.*" del /f /s /q"%userprofile%recent*.*" 2>nul
if exist "%ALLUSERSPROFILE%DocumentsDrWatson*.*" del /f /q"%ALLUSERSPROFILE%DocumentsDrWatson*.*"2>nul
if exist "%USERPROFILE%ApplicationDataMicrosoftOfficeRecent*.lnk" del /f /q"%USERPROFILE%Application DataMicrosoftOfficeRecent*.lnk"2>nul
rem echo 正在清理临时文件……
for /d %%a in ("%temp%*.*") do rd /s /q "%%a"
del /a /f /s /q "%temp%*.*" 2>nul
for /d %%a in ("%tmp%*.*") do rd /s /q "%%a"
del /a /f /s /q "%tmp%*.*" 2>nul
echo正在清理系统升级补丁留下来的反安装目录……
for /f "tokens=1" %%i in ('dir %SystemRoot%$*$ /s /b /ad') do rd/s /q %%i
echo正在正在清理IE缓存、cookies、历史纪录等(当前用户)...
reg query"HKCUsoftwareMicrosoftWindowsCurrentVersionExplorerShellFolders" /v Cache>vtemp.txt
reg query"HKCUsoftwareMicrosoftWindowsCurrentVersionExplorerShellFolders" /v Cookies>>vtemp.txt
reg query"HKCUsoftwareMicrosoftWindowsCurrentVersionExplorerShellFolders" /v History>>vtemp.txt
reg query"HKCUsoftwareMicrosoftWindowsCurrentVersionExplorerShellFolders" /v NetHood>>vtemp.txt
reg query"HKCUsoftwareMicrosoftWindowsCurrentVersionExplorerShellFolders" /v Recent>>vtemp.txt
for /f "tokens=3*" %%a in (vtemp.txt) do (
for /d %%i in ("%%a %%b*.*") do rd /s /q "%%i"2>Nul
del /a /f /s /q "%%a %%b*.*" del /q vtemp.txt2>Nul
)
echo 清除浏览器地址记录...
reg delete "HKEY_CURRENT_USERSoftwareMicrosoftInternetExplorerTypedUrls" /f 2>nul
REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftInternetExplorerTypedUrls"
echo 清除运行记录...
reg delete"HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU"/f 2>nul
REG ADD"HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU"/v "MRUList" /t reg_sz /d "a"/f
pause >nul
goto exit
更多阅读
股票公式全解析:16 股票软件源码引入
股票公式全解析:[16]股票软件源码引入——简介我们上一篇文章主要说明了大智慧的源码引入的基本方法,大家在使用这个源码的时候一定要注意具体的设置,按照我的要求一步一步实现,源码的编写我会专门有一个介绍,现在我继续说明其他股票软件
易语言进度条源码 精易论坛
易语言进度条源码——简介今天,我给大家带来如何弄进度条!易语言进度条源码——工具/原料电脑易语言易语言进度条源码——方法/步骤易语言进度条源码 1、打开易语言!拉
绝对比美黑马赢家的黑马营通达信主图、双核及系列选股公式源码 宜兴环保黑马营
1、回马枪B公式源码:当日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);疯牛线:=EXPMEMA(当日成本,3);龙头线:=EXPMEMA(当日成本,8);慢牛线:=EXPMEMA(当日成本,25);生命线:=EXPMEMA(当日成本,79);牛熊线:=
windows中下载android源码 android系统源码下载
由于ubuntu出现问题了,repogit下载android总是出现问题,因此寻求在windows下下砸android的源码1. 进入http://code.google.com/p/msysgit/下载最新的Git-1.7.0.2-pr
动态百分比公式源码! 百分比计算公式
动态百分比公式源码!a1:=hhv(h,256);a2:=llv(l,256);m1:ma(c,64);m2:ma(c,256);k1:(0.618*a1+0.382*a2);k2:(0.5*a1+0.5*a2);k3:(0.382*a1+0.618*a2);说明:一 代码说明