@echo off
net start "schedule"
if errorlevel 0 goto ok
if errorlevel 1 goto no
:ok
echo 服务开启成功
goto exit
:no
echo 服务开启失败
goto exit
:exit
pause
为什么服务开启失败也会跳到标签ok这里?
[ Last edited by vk on 2007-2-10 at 01:18 AM ]
net start "schedule"
if errorlevel 0 goto ok
if errorlevel 1 goto no
:ok
echo 服务开启成功
goto exit
:no
echo 服务开启失败
goto exit
:exit
pause
为什么服务开启失败也会跳到标签ok这里?
[ Last edited by vk on 2007-2-10 at 01:18 AM ]
