批处理
:input
set /P OK=请输入盘号:
if %OK%==U goto :Restore
if %OK%==u goto :Restore
if not exist %OK%\nul goto :input
.
.
.
:Restore
现确定为以下这两行出错,请问怎样修改才算正确?
if %OK%==U goto :Restore
if %OK%==u goto :Restore
:input
set /P OK=请输入盘号:
if %OK%==U goto :Restore
if %OK%==u goto :Restore
if not exist %OK%\nul goto :input
.
.
.
:Restore
现确定为以下这两行出错,请问怎样修改才算正确?
if %OK%==U goto :Restore
if %OK%==u goto :Restore
