方式一
@echo off
Echo 无人值守安装系统补丁
Echo hike.bokee.com
Echo 开始进行无人值守安装系统补丁
for %%i in (*.exe) do %%i /passive /norestart /nobackup
Echo 安装完成,重新启动计算机生效,请确认!
pause
shutdown -r
方式二
@echo off
echo Windows XP SP1 后的所有补丁升级程序!
echo 正在升级中,请等.............
start /wait WindowsXP-KB928843-x86-CHS.exe /passive /norestart
start /wait WindowsXP-KB929969-x86-CHS.exe /passive /norestart
start /wait WindowsXP-KB930178-x86-CHS.exe /passive /norestart
start /wait WindowsXP-KB931261-x86-CHS.exe /passive /norestart
start /wait WindowsXP-KB931768-x86-CHS.exe /passive /norestart
start /wait WindowsXP-KB931784-x86-CHS.exe /passive /norestart
start /wait WindowsXP-KB932168-x86-CHS.exe /passive /norestart
echo 升级完毕,请重新启动您的计算机,以便完成升级,按任意键关闭此窗口!
pause
exit
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=6432450