@ECHO OFF
set /p var=操作[1:启动 , 2:停止]:
if %var%==1 goto start
if %var%==2 goto stop
:start
net start mssqlserver
goto end
:stop
net stop mssqlserver
goto end
:end
mssqlserver服务
@ECHO OFF
set /p var=本地网络操作[1:启动 , 2:停止]:
if %var%==1 goto start
if %var%==2 goto stop
:start
netsh interface set interface "本地连接" "enabled"
goto end
:stop
netsh interface set interface "本地连接" "disabled"
goto end
:end
本地网络操作