Posted on 2006-10-11 11:24
ChinaBUG[iPodMP.com] 阅读(466)
评论(0) 编辑 收藏 所属分类:
网络资源
DllCacheManager程序的代码原文!
DllCacheManager程序的前身是一位网友写的批处理文件,后来被yanghaijun做成了恢复程序,现在我把原代码给大家整理了一份,希望对你的学习有帮助!
echo off
title 重建dllcache
cd c:\sysprep
echo Windows Registry Editor Version 5.00>>restoredll.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]>>restoredll.reg
echo "SfcQuota"=dword:ffffffff>>restoredll.reg
regedit /s restoredll.reg
del restoredll.reg
attrib -s -h -a -r "%programfiles%\Outlook Express\msimn.exe"
attrib -s -h -a -r %systemroot%\fonts\dosapp.fon
attrib -s -h -a -r %systemroot%\fonts\vgaoem.fon
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%ProgramFiles%\Internet Explorer\%%i" copy "%ProgramFiles%\Internet Explorer\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%ProgramFiles%\Internet Explorer\Connection Wizard\%%i" copy "%ProgramFiles%\Internet Explorer\Connection Wizard\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%ProgramFiles%\Movie Maker\%%i" copy "%ProgramFiles%\Movie Maker\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %ProgramFiles%\NetMeeting\%%i copy %ProgramFiles%\NetMeeting\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%ProgramFiles%\Outlook Express\%%i" copy "%ProgramFiles%\Outlook Express%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%ProgramFiles%\Windows Media Player\%%i" copy "%ProgramFiles%\Windows Media Player\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%ProgramFiles%\Windows NT\%%i" copy "%ProgramFiles%\Windows NT\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%ProgramFiles%\Windows NT\Accessories\%%i" copy "%ProgramFiles%\Windows NT\Accessories\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%CommonProgramFiles%\Microsoft Shared\Speech\%%i" copy "%CommonProgramFiles%\Microsoft Shared\Speech\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%CommonProgramFiles%\Microsoft Shared\Speech\2052\%%i" copy "%CommonProgramFiles%\Microsoft Shared\Speech\2052\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%CommonProgramFiles%\Microsoft Shared\Triedit\%%i" copy "%CommonProgramFiles%\Microsoft Shared\Triedit\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%CommonProgramFiles%\Microsoft Shared\VGX\%%i" copy "%CommonProgramFiles%\Microsoft Shared\VGX\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%CommonProgramFiles%\Microsoft Shared\MSInfo\%%i" copy "%CommonProgramFiles%\Microsoft Shared\MSInfo\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%CommonProgramFiles%\Microsoft Shared\DAO\%%i" copy "%CommonProgramFiles%\Microsoft Shared\DAO\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %CommonProgramFiles%\MSSoap\Binaries\%%i copy %CommonProgramFiles%\MSSoap\Binaries\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %CommonProgramFiles%\MSSoap\Binaries\Resources\1033\%%i copy %CommonProgramFiles%\MSSoap\Binaries\Resources\1033\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %CommonProgramFiles%\SpeechEngines\Microsoft\Lexicon\1033\%%i copy %CommonProgramFiles%\SpeechEngines\Microsoft\Lexicon\1033\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %CommonProgramFiles%\SpeechEngines\Microsoft\TTS\1033\%%i copy %CommonProgramFiles%\SpeechEngines\Microsoft\TTS\1033\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %CommonProgramFiles%\SpeechEngines\Microsoft\%%i copy %CommonProgramFiles%\SpeechEngines\Microsoft\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %CommonProgramFiles%\System\%%i copy %CommonProgramFiles%\System\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\%%i copy %systemroot%\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\AppPatch\%%i copy %systemroot%\AppPatch\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\drivers\%%i copy %systemroot%\system32\drivers\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\%%i copy %systemroot%\system32\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system\%%i copy %systemroot%\system\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\fonts\%%i copy %systemroot%\fonts\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\help\%%i copy %systemroot%\help\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\ime\%%i copy %systemroot%\ime\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\ime\CHSIME\APPLETS\%%i copy %systemroot%\ime\CHSIME\APPLETS\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\ime\CHTIME\Applets\%%i copy %systemroot%\ime\CHTIME\Applets\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\ime\IMJP8_1\%%i copy %systemroot%\ime\IMJP8_1\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\ime\IMJP8_1\APPLETS\%%i copy %systemroot%\ime\IMJP8_1\APPLETS\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\ime\IMKR6_1\%%i copy %systemroot%\ime\IMKR6_1\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\ime\IMKR6_1\Applets\%%i copy %systemroot%\ime\IMKR6_1\Applets\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\ime\SHARED\%%i copy %systemroot%\ime\SHARED\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\ime\SHARED\RES\%%i copy %systemroot%\ime\SHARED\RES\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\inf\%%i copy %systemroot%\inf\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\msagent\%%i copy %systemroot%\msagent\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\msagent\intl\%%i copy %systemroot%\msagent\intl\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\srchasst\%%i copy %systemroot%\srchasst\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\Com\%%i copy %systemroot%\system32\Com\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\IME\CINTLGNT\%%i copy %systemroot%\system32\IME\CINTLGNT\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\IME\PINTLGNT\%%i copy %systemroot%\system32\IME\PINTLGNT\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\IME\TINTLGNT\%%i copy %systemroot%\system32\IME\TINTLGNT\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\PCHealth\HelpCtr\Binaries\%%i copy %systemroot%\PCHealth\HelpCtr\Binaries\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\PCHealth\UploadLB\Binaries\%%i copy %systemroot%\PCHealth\UploadLB\Binaries\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\RegisteredPackages\{44BBA855-CC51-11CF-AAFA-00AA00B6015C}\%%i copy %systemroot%\RegisteredPackages\{44BBA855-CC51-11CF-AAFA-00AA00B6015C}\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\RegisteredPackages\{AA936DF4-2B08-4B1F-B071-72192E287704}\%%i copy %systemroot%\RegisteredPackages\{AA936DF4-2B08-4B1F-B071-72192E287704}\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\oobe\%%i copy %systemroot%\system32\oobe\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\Setup\%%i copy %systemroot%\system32\Setup\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\usmt\%%i copy %systemroot%\system32\usmt\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\wbem\%%i copy %systemroot%\system32\wbem\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\%%i copy %systemroot%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\Com\%%i copy %systemroot%\system32\Com\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\mui\0804\%%i copy %systemroot%\system32\mui\0804\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\npp\%%i copy %systemroot%\system32\npp\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %systemroot%\system32\Restore\%%i copy %systemroot%\system32\Restore\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%systemroot%\WinSxS\x86_Microsoft.Tools.VisualCPlusPlus.Runtime-Libraries.Resources_6595b64144ccf1df_6.0.0.0_zh-CN_5e1fba9c\%%i" copy "%systemroot%\WinSxS\x86_Microsoft.Tools.VisualCPlusPlus.Runtime-Libraries.Resources_6595b64144ccf1df_6.0.0.0_zh-CN_5e1fba9c\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%systemroot%\WinSxS\x86_Microsoft.Tools.VisualCPlusPlus.Runtime-Libraries_6595b64144ccf1df_6.0.0.0_x-ww_ff9986d7\%%i" copy "%systemroot%\WinSxS\x86_Microsoft.Tools.VisualCPlusPlus.Runtime-Libraries_6595b64144ccf1df_6.0.0.0_x-ww_ff9986d7\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%systemroot%\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a\%%i" copy "%systemroot%\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%systemroot%\WinSxS\x86_Microsoft.Windows.CPlusPlusRuntime_6595b64144ccf1df_7.0.0.0_x-ww_2726e76a\%%i" copy "%systemroot%\WinSxS\x86_Microsoft.Windows.CPlusPlusRuntime_6595b64144ccf1df_7.0.0.0_x-ww_2726e76a\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%programfiles%\Internet Explorer\%%i" copy "%programfiles%\Internet Explorer\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%programfiles%\Internet Explorer\Connection Wizard\%%i" copy "%programfiles%\Internet Explorer\Connection Wizard\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%programfiles%\Movie Maker\%%i" copy "%programfiles%\Movie Maker\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist %programfiles%\NetMeeting\%%i copy %programfiles%\NetMeeting\%%i %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%programfiles%\Outlook Express\%%i" copy "%programfiles%\Outlook Express\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%programfiles%\Windows Media Player\%%i" copy "%programfiles%\Windows Media Player\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%programfiles%\Windows NT\%%i" copy "%programfiles%\Windows NT\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%programfiles%\Windows NT\Accessories\%%i" copy "%programfiles%\Windows NT\Accessories\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%CommonProgramFiles%\System\msadc\%%i" copy "%CommonProgramFiles%\System\msadc\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%CommonProgramFiles%\System\ado\%%i" copy "%CommonProgramFiles%\System\ado\%%i" %systemroot%\system32\dllcache
FOR /F "usebackq" %%i IN (file.txt) DO if exist "%CommonProgramFiles%\System\Ole DB\%%i" copy "%CommonProgramFiles%\System\Ole DB\%%i" %systemroot%\system32\dllcache
attrib +s +h +a +r %systemroot%\fonts\dosapp.fon
attrib +s +h +a +r %systemroot%\fonts\vgaoem.fon<--c2-->