 
- 帖子
- 142
- 积分
- 1546
- 技术
- 3
- 捐助
- 0
- 注册时间
- 2008-8-3
|
20楼
发表于 2008-12-13 22:46
| 只看该作者
原帖由 rat 于 2008-12-9 03:13 发表 
判断数字的@echo off & setlocal
if "%~1" neq "-new" start "" "%~f0" -new & exit/b
set /p s=Please Input:
call :IsNumeric "%s%" && echo True || echo False
pause & exit
:IsNumeric
setlocal
f ...
13楼的这个方法在判断数字失败一次后进入实模式DOS,也就是说不认中文字了. |
|