感觉windows的Choice命令很不好用,用起来还比较烦。故而用下面的代码替代:
@echo off
:::
:::DFN=choice item
:::author=Emperor
:::
::start
set /p DFN= Please Choice what you want[1,2]:
if not exist %DFN% goto failed
goto %DFN%
:1
notepad
goto end
:2
calc
goto end
:failed
echo.
echo *** No %DFN% exist,please double check !!! ***
echo.
pause>nul
:end
exit
|
阅读(400) | 评论(0) | 转发(0) |