标题: 求纯DOS下运行的非数字输入无效的批处理
[打印本页]
作者: hhwwll
时间: 2008-11-10 14:00
标题: 求纯DOS下运行的非数字输入无效的批处理
求纯DOS下运行的非数字输入无效的批处理
作者: tireless
时间: 2008-11-10 14:12
www.westmesatech.com ...EditVar 1.8 - (C) 2006-2008 by Bill Stewart (bstewart@iname.com)
Allows interactive editing of environment variables.
Usage: EditVar [-b] [-l len] [-m] [-n] [-o] [-p prompt] [-t n] [-u] 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
作者: hhwwll
时间: 2008-11-10 18:51
看不明白,有没有其他的方法?