@echo off
setlocal enabledelayedexpansion
cls
ver | find "5.1." > NUL && goto :XP
ver | find "6.1." > NUL && goto :WIN7
echo unknown OS
goto :eof
:XP
echo OS is XP
::xp系统下要安装补丁
cd..
cd bat
cd sql2008
echo start install WindowsXP-KB926139-v2-x86-ENU
WindowsXP-KB926139-v2-x86-ENU /passive /norestart /nobackup
批处理安装SQL Server 2008 R2
最新推荐文章于 2022-10-17 16:23:03 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)