![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 23:24 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Still about how to get keyboard input, please help |
| Printable Version 783 / 9 |
| Floor1 lifeng5115 | Posted 2003-08-08 00:00 |
| 中级用户 Posts 39 Credits 283 | |
|
I want to have a batch file prompt me to enter a string of characters, then prompt me to enter it again and do a check. If it doesn't match, then report an error.
It's a bit like entering a new password, then entering it again; if it doesn't match, report an error, and if it does, confirm it. Is there any software that can be directly used for this, like batchman or something? |
|
| Floor2 cn_archer | Posted 2003-08-08 00:00 |
| 元老会员 Posts 991 Credits 2,903 From 福建省 | |
|
I think for this it's better to have the batch file call an executable that verifies passwords...
|
|
| Floor3 hzy | Posted 2003-08-08 00:00 |
| 高级用户 Posts 135 Credits 578 | |
The following is quoted from lifeng5115's post at 2003-8-8 15:48:03:(Use get. I wrote a few lines for you; modify them as needed!) :input get s "Please input String:" set a=%get% get s "Input String Again:" set b=%get% if %a%==%b% goto ok echo Error ! goto input kecho OK ! |
|
| Floor4 hzy | Posted 2003-08-09 00:00 |
| 高级用户 Posts 135 Credits 578 | |
|
del...
|
|
| Floor5 lifeng5115 | Posted 2003-08-11 00:00 |
| 中级用户 Posts 39 Credits 283 | |
|
Thanks.
Is this get a command that comes with DOS, or a DOS software tool? If it's DOS software, then where can I download it? |
|
| Floor6 hzy | Posted 2003-08-11 00:00 |
| 高级用户 Posts 135 Credits 578 | |
|
Here you go: Open attachment
|
|
| Floor7 jeffyy | Posted 2003-08-11 00:00 |
| 初级用户 Posts 23 Credits 219 | |
|
Thanks
|
|
| Floor8 hzy | Posted 2003-08-13 00:00 |
| 高级用户 Posts 135 Credits 578 | |
|
You're welcome!
|
|
| Floor9 lifeng5115 | Posted 2003-08-13 00:00 |
| 中级用户 Posts 39 Credits 283 | |
| Floor10 lifeng5115 | Posted 2003-08-13 00:00 |
| 中级用户 Posts 39 Credits 283 | |
|
Thanks, thanks hzy, many thanks
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |