Windows 更新程式 - 檔案內容和版本檢查 - PCZONE 討論區

返回   PCZONE 討論區 > ▲ -- 電 腦 軟 體 討 論 區 > -- 軟 體 分 享 版


PCZONE 討論區



通知

-- 軟 體 分 享 版 Freeware / Shareware / 試用版 , 您覺得好用的軟體可以在此版與網友分享

あなたの家に行く
Windows 更新程式 - 檔案內容和版本檢查
範例是給 Windows XP 系統用的。

語法:
@echo off

for %%z in (*XP-KB*.exe) do %%z /x:%%~nz /q

for /f %%v in ('dir /ad /b *XP-KB*') do (
cd %%v
for /f %%t in ('dir /ad /b *3Q*') do (
cd %%t
for /f "tokens=2 delims=-" %%n in ("%%v") do (
echo %%n
echo %%n>>..\..\vcheck.txt
echo ========================================>>..\..\vcheck.txt
for /r %%f in (*) do echo %%~nxf>>..\..\vcheck.txt&sigcheck -q -n %%f>>..\..\vcheck.txt
echo.>>..\..\vcheck.txt
)
cd ..
)
cd ..
)

for /f %%a in ('dir /ad /b *XP-KB*') do rd /s /q %%a


上傳的附加檔案
檔案類型: 7z vcheck.7z (3.9 KB, 25 次觀看)
回覆
あなたの家に行く

全新撰寫的腳本。經過兩天的實驗,應該是可以應付目前的 XP SP3 更新檔。

語法:
@echo off

set file1=fileinfo.txt
set file2=filelist.txt

del %file1% %file2% 2>nul

for %%f in (WindowsXP-KB*.exe) do (
for /f "tokens=2 delims=-" %%r in ("%%f") do (
echo %%r
if not exist %%r %%f /q /x:%%r

cd %%r
for %%x in (empty.cat spmsg.dll spuninst.exe spupdsvc.exe tzchange.dll) do del %%x 2>nul
for %%v in (SP3GDR\* SP3QFE\* SP3QFE\ip\* SP3QFE\lang\* wm9\*) do move %%v
for /f "delims=" %%s in ('dir /a-d /b /s SP3GDR SP3QFE ^2^>nul') do move "%%s"
for /d %%d in (*) do rd /q /s %%d
cd ..

echo %%r>>%file1%
echo ========================================>>%file1%

for %%n in (%%r\*) do (
echo %%~nxn>>%file1%
sigcheck -n -q %%n>>%file1%
echo.>>%file1%
)

xcopy /d /k /q /y %%r FILES\
echo.
)
)

for %%n in (FILES\*) do (
echo %%~nxn>>%file2%
sigcheck -n -q %%n>>%file2%
echo.>>%file2%
)

set file1=
set file2=
上傳的附加檔案
檔案類型: 7z vcheck.7z (526 Byte, 12 次觀看)
回覆
あなたの家に行く

為了加速 Windows XP 更新彙總的製作過程,腳本又改寫了一次。

語法:
@echo off & setlocal enabledelayedexpansion

set "dir1=rtmgdr" & set "dir2=rtmqfe" & set "file1=fileinfo.txt" & set "file2=filelist.txt"
del %file1% %file2% 2>nul

for %%f in (windows*.exe) do for /f "tokens=2 delims=-" %%r in ("%%f") do (
echo %%r
if not exist %%r %%f /q /x:%%r

cd %%r
del empty.cat spmsg.dll spuninst.exe spupdsvc.exe tapicust.dll tzchange.dll 2>nul
for /l %%i in (1,1,3) do if exist sp%%iqfe\ set "dir1=sp%%igdr" & set "dir2=sp%%iqfe"
for %%s in (!dir1!\* !dir2!\* !dir2!\ip\* uniproc\* wm41\* wm8\* wm9\*) do move "%%s"
for %%v in (asms lang) do xcopy /d /e /k /q /y !dir2!\%%v %%v\ 1>nul 2>&1
rd /q /s rtmgdr rtmqfe sp1gdr sp1qfe sp2gdr sp2qfe sp3gdr sp3qfe uniproc 2>nul
rd /q /s mceur2 v8dme wm41 wm8 wm9 wm10 wm10l wm10mix wm11 2>nul
rd /q /s update 2>nul
cd ..

echo %%r>>%file1%
echo ========================================>>%file1%

for /f "delims=" %%n in ('dir /a-d /b /s %%r ^2^>nul') do (
echo %%~nxn>>%file1%
sigcheck -n -q "%%n">>%file1%
echo.>>%file1%
)

xcopy /d /e /k /q /y %%r qfe\
echo.
)

for /f "delims=" %%n in ('dir /a-d /b /s qfe ^2^>nul') do (
echo %%~nxn>>%file2%
sigcheck -n -q "%%n">>%file2%
echo.>>%file2%
)


上傳的附加檔案
檔案類型: 7z vcheck.7z (660 Byte, 4 次觀看)
回覆


類似的主題
主題 主題作者 討論版 回覆 最後發表
【新聞】(偽) Windows Pre-SPX (快速下載 WINDOWS XP 的更新檔) threesecond -- Windows 更新 & 驅 動 程 式 版 156 2012-02-29 12:11 AM
Office 更新程式: Microsoft Office JIS90/JIS2004 相容字型 琥珀 -- Windows 更新 & 驅 動 程 式 版 0 2010-07-10 12:07 AM
大陸人寫的 Win98 更新程式 ! senliou -- Windows 討 論 版 15 2003-09-19 12:36 PM
[必看] 防止 "紅色警戒" 之 NT / Win2K IIS SERVER 更新程式 阿 土 -- 防 駭 / 防 毒 版 29 2003-06-27 11:03 PM
【軟體】XP繁體中文版的 SP1 更新程式 ahom -- Windows 討 論 版 6 2002-09-25 03:32 PM






 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。