@echo off
net share c$ /del
net share d$ /del
net share e$ /del
net share ADMIN$ /del
net share windows$ /del
if not errorlevel 0 goto no
if not errorlevel 1 goto ok
:no
echo 操作失败!>>no.txt
no.txt
del no.txt
:ok
echo 操作成功!>>ok.txt
ok.txt
del ok.txt
运行后如果不成功它会先跳到:no 这然后跳到:ok
怎么才能让它 如果不成功就跳到:no
为什么操作不成功它会跳到:ok这里?
请高人指点!
net share c$ /del
net share d$ /del
net share e$ /del
net share ADMIN$ /del
net share windows$ /del
if not errorlevel 0 goto no
if not errorlevel 1 goto ok
:no
echo 操作失败!>>no.txt
no.txt
del no.txt
:ok
echo 操作成功!>>ok.txt
ok.txt
del ok.txt
运行后如果不成功它会先跳到:no 这然后跳到:ok
怎么才能让它 如果不成功就跳到:no
为什么操作不成功它会跳到:ok这里?
请高人指点!
