求纯DOS下运行的非数字输入无效的批处理
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
EditVar 1.8 - (C) 2006-2008 by Bill Stewart (bstewart@iname.com)
Allows interactive editing of environment variables.
Usage: EditVar var
-b Place cursor at the beginning of the input string.
-l len Allow no more than 'len' characters (1 to 255).
-m Masked input ('*' appears for each typed character).
-n Allow only numeric input (0-9).
-o Start in overtype mode.
-p prompt Prompt the user with 'prompt' (enclose in quotes if it has spaces).
-t n Assume Enter was pressed if nothing typed in 'n' seconds.
-u Force entered characters to uppercase.
var The environment variable's name (required).
Exit codes:
1 Error on the command line
2 Input line was blank
3 Environment variable was not changed
4 Program aborted with Ctrl-C
8 Insufficient space in environment to store variable