中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-07-07 02:44
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 求纯DOS下运行的非数字输入无效的批处理 查看 616 回复 2
楼 主 求纯DOS下运行的非数字输入无效的批处理 发表于 2008-11-10 14:00 ·  中国 浙江 杭州 电信
中级用户
积分 293
发帖 30
注册 2003-09-01 00:00
22年会员
UID 9311
性别 男
状态 离线
求纯DOS下运行的非数字输入无效的批处理
2 发表于 2008-11-10 14:12 ·  中国 江西 赣州 安远县 电信
银牌会员
★★★★
积分 2,025
发帖 1,122
注册 2007-09-05 20:15
18年会员
UID 96653
性别 男
状态 离线
http://www.westmesatech.com/editv.html

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
3 发表于 2008-11-10 18:51 ·  中国 浙江 杭州 电信
中级用户
积分 293
发帖 30
注册 2003-09-01 00:00
22年会员
UID 9311
性别 男
状态 离线
看不明白,有没有其他的方法?
论坛跳转: