中国DOS联盟论坛

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-02 11:37
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Ask: How to receive user input with a batch file?
Printable Version  4,592 / 16
Floor1 dickhunt Posted 2003-10-28 00:00
初级用户 Posts 4 Credits 125
I want to prompt the user to enter a directory name, and then use MD to create this directory. How to achieve this? (Not using parameters). Thanks!!!
Floor2 jhhjwok Posted 2003-10-29 00:00
中级用户 Posts 52 Credits 278
Using the input applet is okay
Floor3 dickhunt Posted 2003-10-29 00:00
初级用户 Posts 4 Credits 125
Of course I know in C language, but can it be achieved only with batch processing?
Floor4 jhhjwok Posted 2003-10-30 00:00
中级用户 Posts 52 Credits 278
In batch processing, you can run an input mini-program to prompt the user for input
Floor5 drlzf Posted 2003-12-17 00:00
初级用户 Posts 14 Credits 158
The following is a quote from jhhjwok at 2003-10-30 13:04:29:
You can run the input applet in the batch processing to prompt the user for input


How to use it?
Also, where can I download that Input applet?
Floor6 hzy Posted 2003-12-17 00:00
高级用户 Posts 135 Credits 578
Use get!
Floor7 drlzf Posted 2003-12-19 00:00
初级用户 Posts 14 Credits 158
The following is a quote from hzy on 2003-12-17 20:02:00:
Use get!


Where can I download this, and can you tell me how to use it?
Floor8 hzy Posted 2003-12-19 00:00
高级用户 Posts 135 Credits 578
get c "character"
get s "strings"
get n "y/n"

%get%=What you entered

The attachment is get.com: Open attachment



Floor9 xiaojun Posted 2003-12-20 00:00
银牌会员 Posts 499 Credits 2,202
You need a password for this get??????...
Floor10 hzy Posted 2003-12-22 00:00
高级用户 Posts 135 Credits 578
The following is a quote from xiaojun on 2003-12-20 21:26:18:
You need a password for this get??????...
Ah? Why is this happening? It should be a forum issue, right?
Floor11 xiaojun Posted 2003-12-22 00:00
银牌会员 Posts 499 Credits 2,202
...
Floor12 电吉入侵 Posted 2003-12-23 00:00
初级用户 Posts 377 Credits 1,480
Yeah, why can't I download from the forum anymore...
Floor13 Wengier Posted 2003-12-23 00:00
系统支持 Posts 10,521 Credits 27,736
hzy: Try to change the extension of this attachment (as long as it's not EXE, etc.) or package and compress it into ZIP/RAR format with ZIP/RAR before uploading. Because this server does not support direct download of files with the EXE extension, so the phenomenon of needing to enter a password occurs when directly downloading.EXE files.

Floor14 hzy Posted 2003-12-23 00:00
高级用户 Posts 135 Credits 578
Attachment: get.com.rarOpen the attachment
Floor15 lxmxn Posted 2006-11-04 00:18
版主 Posts 4,938 Credits 11,386

If it is in CMD batch processing, you can use set /p to solve the problem.
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023