PCDVD數位科技討論區
PCDVD數位科技討論區   註冊 常見問題 標記討論區為已讀

回到   PCDVD數位科技討論區 > 其他群組 > 疑難雜症區
帳戶
密碼
 

回應
 
主題工具
Nerine
Junior Member
 
Nerine的大頭照
 

加入日期: Dec 2005
文章: 980
關於WINRAR自解檔參數的請教

我想要把20個更加檔放入winrar自解檔
點開後自動解壓至暫存資料夾 並開始安裝那20個更新檔(不需對話)
請問我該怎麼做?

參考
http://pank.org/blog/archives/000309.html

我打出這樣的指令

引用:
; 下列註解包含自解檔指令碼指令

Title=WindwosXP-SP3-KB0811-x86-CHT
Text
{
此Service Pack內含以下更新檔

KB950762:Windows XP 安全性更新
KB951376:Windows XP 安全性更新
適用對象:WindowsXP SP3 x86
同意安裝請按"下一步"

}
Path=%temp%
Setup=WindowsXP-KB890830-v2.4.exe /i
TempMode
Silent=1
Overwrite=1



結果是失敗收場
請問我那邊打錯了呢?
     
      
__________________
燦坤卡號:22833395 歡迎使用



神奈真是太可愛啦

碧血狂殺2 是神作!!!!
舊 2008-11-14, 02:08 PM #1
回應時引用此文章
Nerine離線中  
AdaHsu
Major Member
 
AdaHsu的大頭照
 

加入日期: Nov 2001
文章: 298
寫一個批次檔讓 WinRAR 直接執行如何?
 
舊 2008-11-14, 05:14 PM #2
回應時引用此文章
AdaHsu離線中  
maruko.
Major Member
 
maruko.的大頭照
 

加入日期: Nov 2008
文章: 206
耶,hotfix應該不能直接用rar的指令去跑吧...
至少我沒看過有人這麼做。

如樓上說的用批次檔去跑即可。
舊 2008-11-14, 05:37 PM #3
回應時引用此文章
maruko.離線中  
野口隆史
Elite Member
 
野口隆史的大頭照
 

加入日期: Mar 2001
您的住址: Rivia
文章: 7,068
三秒練功房好像有教學
__________________
Folding@home with GPGPU集中討論串

Unix Review: ArchLinuxSabayonOpenSolaris 2008.5Ubuntu 8.10
AVs Review: GDTCAntiVir SSESSKIS 09NIS 09Norton 360 V3

I Always Get What I Want.
舊 2008-11-14, 06:22 PM #4
回應時引用此文章
野口隆史離線中  
yausu
Major Member
 

加入日期: May 2002
文章: 111
hotfix我都是寫個*.cmd讓他跑
舊 2008-11-14, 08:02 PM #5
回應時引用此文章
yausu離線中  
Nerine
Junior Member
 
Nerine的大頭照
 

加入日期: Dec 2005
文章: 980
引用:
作者AdaHsu
寫一個批次檔讓 WinRAR 直接執行如何?


小弟不才 請問該怎麼寫一個批次檔??
好歹讓我伸一下關鍵字 或教學網頁
__________________
燦坤卡號:22833395 歡迎使用



神奈真是太可愛啦

碧血狂殺2 是神作!!!!
舊 2008-11-14, 09:12 PM #6
回應時引用此文章
Nerine離線中  
Nerine
Junior Member
 
Nerine的大頭照
 

加入日期: Dec 2005
文章: 980
引用:
作者野口隆史
三秒練功房好像有教學



感謝~請問是這篇嗎?
http://www.threesecond.info/v2/modu...85&post_id=3777

批次檔要怎麼寫? 用記事本存成ini副檔名嗎?
原諒小弟不才呀
__________________
燦坤卡號:22833395 歡迎使用



神奈真是太可愛啦

碧血狂殺2 是神作!!!!
舊 2008-11-14, 09:22 PM #7
回應時引用此文章
Nerine離線中  
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離線中  


回應


POPIN
主題工具

發表文章規則
不可以發起新主題
不可以回應主題
不可以上傳附加檔案
不可以編輯您的文章

vB 代碼打開
[IMG]代碼打開
HTML代碼關閉



所有的時間均為GMT +8。 現在的時間是01:47 AM.


vBulletin Version 3.0.1
powered_by_vbulletin 2026。