I downloaded all the patches for the Chinese version of Windows 98 SE, but it's too laborious to install them one by one. I remember that XP patches can be automatically completed at one time through batch processing. Can 98SE do that?
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
@echo off
goto begin
Put this script directly in the patch directory and run it
Note: The folders 1, 2, 3, 4 in the patch directory will be newly created. Please ensure that there are no important materials in these four folders
The main code of this script is from the Internet. jm made some modifications on 2006-8-15
Claimed for 98/ME/2000/XP/2003
Only tested on XP and 2003 systems
:begin
title System Patch Automatic Installation Program
color 1f
md 1 2 3 4 >nul 2>nul
for %%i in (*.exe) do (
(echo %%i|findstr "updfile">nul 2>nul && move %%i 1) || (
echo %%i|findstr "_sfx_cab_exe_package">nul 2>nul && move %%i 2) || (
echo %%i|findstr "update.exe">nul 2>nul && move %%i 3) || (
echo %%i|findstr "_sfx_cab_exe_path">nul 2>nul && move %%i 4)
)
If not exist *.exe (goto auto_install) else (goto list)
:list
echo.
echo ========================================================
echo.
for %%i in (*.exe) do echo %%i needs to be installed manually
echo.
echo ========================================================
echo.
echo When the patches that can be installed automatically are installed, please install the above patches manually
:auto_install
echo.
echo ========================================================
echo.
echo All patches that can be installed automatically have been placed in directories 1, 2, 3, 4 respectively.
echo.
echo Press any key to continue...
pause>nul
cd /d 1
for %%i in (*.exe) do start /wait %%i /q
cd /d 2
for %%i in (*.exe) do start /wait %%i /passive /norestart /o /n
cd /d 3
for %%i in (*.exe) do start /wait %%i -n -o -z
cd /d 4
for %%i in (*.exe) do start /wait %%i /passive /norestart /o /n