瀏覽單個文章
edjc
Junior Member
 
edjc的大頭照
 

加入日期: Jul 2004
您的住址: Verthandi的懷裡
文章: 766
引用:
作者Nerine
感謝~請問是這篇嗎?
http://www.threesecond.info/v2/modu...85&post_id=3777

批次檔要怎麼寫? 用記事本存成ini副檔名嗎?
原諒小弟不才呀


用記事本另存成副檔名.BAT檔案就是叫做批次檔
但WINRAR內野有人是另存為.COM檔案
看你用什麼方式去寫的

另外我貼一個別人寫好得
引用:
@ECHO OFF

ECHO ------Windows Update 至 2007 年 10 月份 共 130 個------
ECHO 1. Windows XP SP2 之後的所有修正檔,....."修正檔" 不包含 WINDOWS XP SP2
ECHO 2. 修正漏洞完畢後,將會執行一個............
ECHO (Microsoft Windows 惡意軟體移除工具協助移除的軟體........)
ECHO 3. 按下任何鍵將開始更新,如果不要執行,請接CTRL+C鍵,謝謝
pause
ECHO GOGOGOGOGO~~~~~~~~~
setlocal
set runpath=.\Update

ECHO 開始更新 1~10
%runpath%\KB867282.exe /passive /norestart
%runpath%\KB873333.exe /passive /norestart
%runpath%\KB873339.exe /passive /norestart
%runpath%\KB883939.exe /passive /norestart
%runpath%\KB885250.exe /passive /norestart
%runpath%\KB885835.exe /passive /norestart
%runpath%\KB885836.exe /passive /norestart
%runpath%\KB885884.exe /passive /norestart
%runpath%\KB886185.exe /passive /norestart
%runpath%\KB886677.exe /passive /norestart
ECHO 繼續更新 11~20
%runpath%\KB887472.exe /passive /norestart
%runpath%\KB887742.exe /passive /norestart
%runpath%\KB888113.exe /passive /norestart
%runpath%\KB888302.exe /passive /norestart
%runpath%\KB890046.exe /passive /norestart
%runpath%\KB890047.exe /passive /norestart
%runpath%\KB890175.exe /passive /norestart
%runpath%\KB890859.exe /passive /norestart
%runpath%\KB890923.exe /passive /norestart
%runpath%\KB891781.exe /passive /norestart
ECHO 繼續更新 21~30
%runpath%\KB893066.exe /passive /norestart
%runpath%\KB893086.exe /passive /norestart
%runpath%\KB893756.exe /passive /norestart
%runpath%\KB893803-v2.exe /passive /norestart
%runpath%\KB894391.exe /passive /norestart
%runpath%\KB896358.exe /passive /norestart
%runpath%\KB896422.exe /passive /norestart
%runpath%\KB896423.exe /passive /norestart
%runpath%\KB896424.exe /passive /norestart
%runpath%\KB896428.exe /passive /norestart
ECHO 繼續更新 31~40
%runpath%\KB896727.exe /passive /norestart
%runpath%\KB898458.exe /passive /norestart
%runpath%\KB898461.exe /passive /norestart
%runpath%\KB899587.exe /passive /norestart
%runpath%\KB899588.exe /passive /norestart
%runpath%\KB899589.exe /passive /norestart
%runpath%\KB899591.exe /passive /norestart
%runpath%\KB900485v2.exe /passive /norestart
%runpath%\KB900725.exe /passive /norestart
%runpath%\KB901017.exe /passive /norestart
ECHO 繼續更新 41~50
%runpath%\KB901190.exe /passive /norestart
%runpath%\KB901214.exe /passive /norestart
%runpath%\KB902400.exe /passive /norestart
%runpath%\KB903235.exe /passive /norestart
%runpath%\KB904706.exe /passive /norestart
%runpath%\KB905414.exe /passive /norestart
%runpath%\KB905749.exe /passive /norestart
%runpath%\KB905915.exe /passive /norestart
%runpath%\KB908519.exe /passive /norestart
%runpath%\KB908531.exe /passive /norestart
ECHO 繼續更新 51~60
%runpath%\KB910437.exe /passive /norestart
%runpath%\KB911280.exe /passive /norestart
%runpath%\KB911562.exe /passive /norestart
%runpath%\KB911565.exe /passive /norestart
%runpath%\KB911567.exe /passive /norestart
%runpath%\KB911927.exe /passive /norestart
%runpath%\KB912812.exe /passive /norestart
%runpath%\KB912919.exe /passive /norestart
%runpath%\KB913446.exe /passive /norestart
%runpath%\KB913580.exe /passive /norestart
ECHO 繼續更新 61~70
%runpath%\KB914388.exe /passive /norestart
%runpath%\KB914389.exe /passive /norestart
%runpath%\KB916281.exe /passive /norestart
%runpath%\KB916595.exe /passive /norestart
%runpath%\KB917159.exe /passive /norestart
%runpath%\KB917344.exe /passive /norestart
%runpath%\KB917422.exe /passive /norestart
%runpath%\KB917734.exe /passive /norestart
%runpath%\KB917953.exe /passive /norestart
%runpath%\KB918118.exe /passive /norestart
ECHO 繼續更新 71~80
%runpath%\KB918439.exe /passive /norestart
%runpath%\KB918899.exe /passive /norestart
%runpath%\KB919007.exe /passive /norestart
%runpath%\KB920213.exe /passive /norestart
%runpath%\KB920214.exe /passive /norestart
%runpath%\KB920670.exe /passive /norestart
%runpath%\KB920683.exe /passive /norestart
%runpath%\KB920685.exe /passive /norestart
%runpath%\KB920872.exe /passive /norestart
%runpath%\KB921398.exe /passive /norestart
ECHO 繼續更新 81~90
%runpath%\KB921503.exe /passive /norestart
%runpath%\KB921883.exe /passive /norestart
%runpath%\KB922582.exe /passive /norestart
%runpath%\KB922616.exe /passive /norestart
%runpath%\KB922760.exe /passive /norestart
%runpath%\KB922819.exe /passive /norestart
%runpath%\KB923191.exe /passive /norestart
%runpath%\KB923414.exe /passive /norestart
%runpath%\KB923694.exe /passive /norestart
%runpath%\KB923789.exe /passive /norestart
ECHO 繼續更新 91~100
%runpath%\KB923810.exe /passive /norestart
%runpath%\KB923980.exe /passive /norestart
%runpath%\KB924191.exe /passive /norestart
%runpath%\KB924270.exe /passive /norestart
%runpath%\KB924496.exe /passive /norestart
%runpath%\KB924667.exe /passive /norestart
%runpath%\KB925454.exe /passive /norestart
%runpath%\KB925486.exe /passive /norestart
%runpath%\KB925902.exe /passive /norestart
%runpath%\KB926247.exe /passive /norestart
ECHO 繼續更新 101~110
%runpath%\KB926255.exe /passive /norestart
%runpath%\KB926436.exe /passive /norestart
%runpath%\KB927779.exe /passive /norestart
%runpath%\KB927802.exe /passive /norestart
%runpath%\KB927891.exe /passive /norestart
%runpath%\KB927977.exe /passive /norestart
%runpath%\KB927978.exe /passive /norestart
%runpath%\KB928090.exe /passive /norestart
%runpath%\KB928255.exe /passive /norestart
%runpath%\KB928843.exe /passive /norestart
ECHO 繼續更新 111~120
%runpath%\KB929123.exe /passive /norestart
%runpath%\KB929338.exe /passive /norestart
%runpath%\KB929399.exe /passive /norestart
%runpath%\KB929969.exe /passive /norestart
%runpath%\KB930178.exe /passive /norestart
%runpath%\KB930916.exe /passive /norestart
%runpath%\KB931261.exe /passive /norestart
%runpath%\KB931768.exe /passive /norestart
%runpath%\KB931784.exe /passive /norestart
%runpath%\KB931836.exe /passive /norestart
ECHO 繼續更新 121~130
%runpath%\KB932168.exe /passive /norestart
%runpath%\KB933360.exe /passive /norestart
%runpath%\KB933566.exe /passive /norestart
%runpath%\KB933729.exe /passive /norestart
%runpath%\KB935839.exe /passive /norestart
%runpath%\KB935840.exe /passive /norestart
%runpath%\KB936021.exe /passive /norestart
%runpath%\KB936181.exe /passive /norestart
%runpath%\KB936357.exe /passive /norestart
%runpath%\KB939653.exe /passive /norestart
ECHO (....................漏洞修正完畢....................)


ECHO 準備執行移除惡意的軟體的工具 Microsoft Malicious Software Removal Tool V1.34 (KB890830)
start /wait %runpath%\check\KB890830V134.exe /Q /F:Y

ECHO 全部修正完畢囉!
shutdown -r /t 60 -c "Hotfix修正完畢!! 60秒後將會重新開機!!"



以上框起來的部份,該網友是寫成.COM檔案

而WINRAR的註解
則是
引用:
; 下列註解包含自解檔指令碼指令

Setup=Update.cmd
TempMode
Silent=2
Overwrite=1


就先這樣
舊 2008-11-14, 09:47 PM #8
回應時引用此文章
edjc離線中