中国DOS联盟论坛

中国DOS联盟

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

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

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 求纯DOS下运行的非数字输入无效的批处理
作者:
标题: 求纯DOS下运行的非数字输入无效的批处理 上一主题 | 下一主题
hhwwll
中级用户




积分 293
发帖 30
注册 2003-9-1
状态 离线
『楼 主』:  求纯DOS下运行的非数字输入无效的批处理

求纯DOS下运行的非数字输入无效的批处理


2008-11-10 14:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
tireless
银牌会员





积分 2025
发帖 1122
注册 2007-9-5
状态 离线
『第 2 楼』:  

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


2008-11-10 14:12
查看资料  发短消息 网志   编辑帖子  回复  引用回复
hhwwll
中级用户




积分 293
发帖 30
注册 2003-9-1
状态 离线
『第 3 楼』:  

看不明白,有没有其他的方法?


2008-11-10 18:51
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: