China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-02 11:38
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Ask: How to receive user input with a batch file? View 4,594 Replies 16
Original Poster Posted 2003-10-28 00:00 ·  中国 西藏 拉萨 移动
初级用户
Credits 125
Posts 4
Joined 2003-05-12 00:00
23-year member
UID 2035
Gender Male
Status Offline
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!!!
Floor 2 Posted 2003-10-29 00:00 ·  中国 浙江 金华 电信
中级用户
★★
Credits 278
Posts 52
Joined 2003-06-10 00:00
23-year member
UID 4662
Gender Male
Status Offline
Using the input applet is okay
Floor 3 Posted 2003-10-29 00:00 ·  中国 西藏 拉萨 移动
初级用户
Credits 125
Posts 4
Joined 2003-05-12 00:00
23-year member
UID 2035
Gender Male
Status Offline
Of course I know in C language, but can it be achieved only with batch processing?
Floor 4 Posted 2003-10-30 00:00 ·  中国 浙江 金华 电信
中级用户
★★
Credits 278
Posts 52
Joined 2003-06-10 00:00
23-year member
UID 4662
Gender Male
Status Offline
In batch processing, you can run an input mini-program to prompt the user for input
Floor 5 Posted 2003-12-17 00:00 ·  中国 广东 佛山 禅城区 电信
初级用户
爱之屋论坛管理员
Credits 158
Posts 14
Joined 2003-12-17 00:00
22-year member
UID 14122
Gender Male
Status Offline
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?
Floor 6 Posted 2003-12-17 00:00 ·  中国 广东 肇庆 电信
高级用户
★★
Credits 578
Posts 135
Joined 2003-07-10 00:00
23-year member
UID 6709
Gender Male
Status Offline
Use get!
Floor 7 Posted 2003-12-19 00:00 ·  中国 广东 佛山 禅城区 电信
初级用户
爱之屋论坛管理员
Credits 158
Posts 14
Joined 2003-12-17 00:00
22-year member
UID 14122
Gender Male
Status Offline
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?
Floor 8 Posted 2003-12-19 00:00 ·  中国 广东 肇庆 四会市 电信
高级用户
★★
Credits 578
Posts 135
Joined 2003-07-10 00:00
23-year member
UID 6709
Gender Male
Status Offline
get c "character"
get s "strings"
get n "y/n"

%get%=What you entered

The attachment is get.com: Open attachment



Floor 9 Posted 2003-12-20 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
You need a password for this get??????...
一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 10 Posted 2003-12-22 00:00 ·  中国 广东 肇庆 端州区 电信
高级用户
★★
Credits 578
Posts 135
Joined 2003-07-10 00:00
23-year member
UID 6709
Gender Male
Status Offline
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?
Floor 11 Posted 2003-12-22 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
...
一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 12 Posted 2003-12-23 00:00 ·  中国 广东 广州 荔湾区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
Yeah, why can't I download from the forum anymore...
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 13 Posted 2003-12-23 00:00 ·  美国
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
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.

Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 14 Posted 2003-12-23 00:00 ·  中国 广东 肇庆 电信
高级用户
★★
Credits 578
Posts 135
Joined 2003-07-10 00:00
23-year member
UID 6709
Gender Male
Status Offline
Attachment: get.com.rarOpen the attachment
Floor 15 Posted 2006-11-04 00:18 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

If it is in CMD batch processing, you can use set /p to solve the problem.
Forum Jump: