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-07-02 16:39
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to implement the function of the choice command under XP? View 3,123 Replies 16
Original Poster Posted 2007-10-17 21:07 ·  中国 黑龙江 牡丹江 联通
新手上路
Credits 4
Posts 1
Joined 2007-10-15 12:22
18-year member
UID 99793
Gender Male
Status Offline
choice has a function that if there is no option selected within a period of time, it will automatically select the default option. How to implement this function in the XP command line?
Floor 2 Posted 2007-10-17 21:48 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
No way.

Only need to download a choice.exe.
Floor 3 Posted 2007-10-18 00:49 ·  中国 福建 泉州 电信
初级用户
Credits 20
Posts 9
Joined 2007-10-18 00:19
18-year member
UID 100027
Gender Male
Status Offline
The person upstairs is it choice.com? I have one here

Just can't upload =.="
Floor 4 Posted 2007-10-18 14:48 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 5 Posted 2007-12-13 11:53 ·  中国 山西 太原 联通
新手上路
Credits 2
Posts 1
Joined 2007-12-13 10:50
18-year member
UID 105504
Gender Male
Status Offline
Is the version owner posting "choice.exe"?
Floor 6 Posted 2007-12-13 18:01 ·  中国 四川 成都 电信
初级用户
Credits 100
Posts 45
Joined 2007-12-11 18:02
18-year member
UID 105341
Gender Male
Status Offline
Wow, can't download. It seems I have to first have a drink of water!
Floor 7 Posted 2008-01-23 09:16 ·  中国 广东 珠海 电信
初级用户
MS-DOS疯狂爱好者
Credits 26
Posts 12
Joined 2007-12-26 21:46
18-year member
UID 106872
Gender Male
From 广东珠海
Status Offline
The choice in DOS doesn't work in Windows XP! I heard that it's available in Windows 2003, and it can be copied to Windows XP for use.
Floor 8 Posted 2008-02-27 22:55 ·  中国 上海 宝山区 电信
新手上路
Credits 2
Posts 1
Joined 2008-02-27 22:31
18-year member
UID 111589
Gender Male
Status Offline
Is the choice command canceled in XP? (I'm new here)
Floor 9 Posted 2008-02-29 15:27 ·  中国 浙江 温州 电信
初级用户
★★
Credits 170
Posts 83
Joined 2007-11-30 16:44
18-year member
UID 104263
Gender Male
Status Offline
It is available in win2003, but it can't be used in winxp either.
Floor 10 Posted 2008-05-09 13:21 ·  中国 广西 玉林 玉州区 电信
新手上路
Credits 1
Posts 1
Joined 2008-05-08 13:49
18-year member
UID 118104
Gender Male
From 中国
Status Offline
Swe sweat! The stuff on the 4th floor doesn't work.
Floor 11 Posted 2008-05-30 15:31 ·  中国 广东 电信
高级用户
★★★
Credits 740
Posts 373
Joined 2008-05-23 14:40
18-year member
UID 119498
Gender Male
From 中国,广东
Status Offline
Basically, if there is no time limit, it can be like this:
Set /P xz=
if /i '%xz%'=='1' goto start
if /i '%xz%'=='q' goto exit
if "%xz%" == "" goto menu
Floor 12 Posted 2008-05-31 22:08 ·  中国 北京 鹏博士BGP
高级用户
★★★
据说是李先生
Credits 609
Posts 400
Joined 2008-04-23 15:55
18-year member
UID 116706
Gender Male
Status Offline
Originally posted by driver1998 at 2008-5-30 03:31 PM:
Basically, if there is no time limit, it can be like this:
Set /P xz=
if /i '%xz%'=='1' goto start
if /i '%xz%'=='q' goto exit
if "%xz%" == "" goto menu


This is a batch script, but it won't work in the CMD window
Floor 13 Posted 2008-06-01 20:09 ·  中国 北京 鹏博士BGP
新手上路
Credits 18
Posts 10
Joined 2008-04-05 18:38
18-year member
UID 115045
Gender Male
Status Offline
Floor 14 Posted 2008-06-02 20:46 ·  中国 福建 泉州 电信
初级用户
★★
Credits 148
Posts 69
Joined 2006-11-23 23:04
19-year member
UID 71504
Gender Male
Status Offline
XP, there is no such command, Baidu it, or Google it...

The 98 one seems to be usable too, but just that it doesn't support Chinese... The suffix is *.exe, (if it's *.com, it's the one自带 by systems below 98)...
Floor 15 Posted 2008-06-02 21:43 ·  中国 河北 保定 移动
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Is choice.exe that hard to find?

http://nufans.net/clone/dostools/choice.exe
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Forum Jump: