中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-04 13:15
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Install system patches in one go
Printable Version  2,869 / 7
Floor1 dcl Posted 2006-11-18 03:16
初级用户 Posts 3 Credits 111
FOR /R %%F IN (.\*.exe) DO @((@findstr _SFX_CAB_EXE_PATH "%%F" >nul && @start /wait %%F /Quiet /Norestart /Nobackup)|| @start /wait %%F )

A script found online, save it as a bat and put it in the patch directory.
Everyone help explain it, and also
Can this fully apply the patches?
Thank you
Floor2 redtek Posted 2006-11-18 04:25
金牌会员 Posts 1,147 Credits 2,902
) Regarding Posting ~: )

  Please, Brother dd, when posting a question, add a "?" question mark after the title. This allows quick recognition of a question when viewing the title ~: )

  If you don't add a question mark, in many cases, it will be thought that Brother dd is posting a teaching experience post about "one-time installation of system patches".
  So netizens who are familiar with commands or familiar with installing patches and their parameters will think it's a teaching post and won't enter, indirectly missing the opportunity for an answer ~: )


) Regarding Disassembling the Principle of the Above Script:

  1) Enumerate all files with the extension .exe through the for command (because the extension of the patch is an.exe file)

  2) findstr to find whether the patch program contains the string "_SFX_CAB_EXE_PATH".
    The patch program is packaged, and you can see the unpacked content of other patch programs using a special unpacking tool ~: )

  3) If the patch contains the string "_SFX_CAB_EXE_PATH", run the installation patch mode with parameters.
    If it does not contain the above string, run the patch program in the normal parameter-free mode.


) The Issue of Whether Patches Can Be Fully Applied

  If all patch programs are downloaded, they can be fully applied (under the condition that no unexpected situations occur).

) How to Know the Parameters of the Patch?

  
  Execute the above command to see the running parameters that the patch can specify ~: )

  The parameters used in the above script:
  

[ Last edited by redtek on 2006-11-17 at 04:27 PM ]
Floor3 voiL Posted 2006-11-18 11:35
中级用户 Posts 189 Credits 384


This one also works. I often use this to apply patches.

/passive is to only show the progress and is also for automatic installation.
/Nostart and /nobackup are well-known, so I won't elaborate.
Floor4 zgren1979 Posted 2006-11-19 15:16
初级用户 Posts 24 Credits 52
Floor5 dos9527 Posted 2006-11-20 06:39
中级用户 Posts 56 Credits 252
Floor6 again123 Posted 2006-11-21 04:02
新手上路 Posts 2 Credits 4
Learned something new again!!!
Floor7 cnds Posted 2010-10-18 19:25
初级用户 Posts 36 Credits 37
Practical, I've been seeking this thing all the time. Great.
Floor8 ny350101 Posted 2010-11-08 12:38
新手上路 Posts 10 Credits 13
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023