Batch file 使用bat文件在xp上安装windows修补程序

Batch file 使用bat文件在xp上安装windows修补程序,batch-file,installation,patch,Batch File,Installation,Patch,我正在尝试安装多个补丁,这是一小段代码,有259个补丁要安装,我已经为bat文件创建了。在把它拿到我们的自动取款机上试一试之前。这样行吗 @echo off D:\dotnetfx35.exe /passive /norestart D:\IE8-WindowsXP-KB2183461-x86-ENU.exe /passive /norestart D:\IE8-WindowsXP-KB2360131-x86-ENU.exe /passive /norestart D:\IE8-Windows

我正在尝试安装多个补丁,这是一小段代码,有259个补丁要安装,我已经为bat文件创建了。在把它拿到我们的自动取款机上试一试之前。这样行吗

@echo off

D:\dotnetfx35.exe /passive /norestart
D:\IE8-WindowsXP-KB2183461-x86-ENU.exe /passive /norestart
D:\IE8-WindowsXP-KB2360131-x86-ENU.exe /passive /norestart
D:\IE8-WindowsXP-KB2416400-x86-ENU.exe /passive /norestart
D:\IE8-WindowsXP-KB2482017-x86-ENU.exe /passive /norestart
D:\IE8-WindowsXP-KB2497640-x86-ENU.exe /passive /norestart
D:\IE8-WindowsXP-KB2530548-x86-ENU.exe /passive /norestart
D:\IE8-WindowsXP-KB2544521-x86-ENU.exe /passive /norestart
D:\IE8-WindowsXP-KB2559049-x86-ENU.exe /passive /norestart
D:\IE8-WindowsXP-KB2586448-x86-ENU.exe /passive /norestart
qchain.exe

我会避免硬编码所有修补程序的名称,而是依赖于一个for-do循环,就像您在这里看到的那样:

使用这种命令样式,以便它们按顺序执行

start "" /w "d:\IE8-..." /passive /norestart

我对您的交换机不予评论,并假设您知道去那里意味着什么。

Foxdrive,谢谢您。我假设/w是/WAIT标志。我将测试并查看结果。测试并达到预期结果。Glytzhkof,感谢您的回复。我不担心将来再使用这个蝙蝠,我已经制作了一张DVD,将来不会添加补丁。我正在研究一种解决方案,以便在将来升级到windows 7后远程管理更新