![]() |
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-07 15:21 |
48,041 topics / 350,128 posts / today 3 new / 48,252 members |
| DOS软件下载 & 游戏分享 (下载室) » [Download] CHOICE for Windows XP |
| Printable Version 21,848 / 71 |
| Floor1 fastslz | Posted 2006-07-04 23:09 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
Version of CHOICE extracted from Win2003: 5.2.3790.0
CHOICE Description: This tool allows the user to select an item from a list of choices and returns the index of the selected item. Parameter list: /C choices Specifies the list of options to create. The default list is "YN". /N Hides the option list in the prompt. The message preceding the prompt is displayed, and the options remain enabled. /CS Allows case-sensitive options to be selected. By default, this tool is case-insensitive. /T timeout The number of seconds to pause before making a default selection. Acceptable values are from 0 to 9999. If 0 is specified, there will be no pause, and the default option will be selected. /D choice Specifies the default option after nnnn seconds. The character must be in the set of choices specified with /C; also, /T must be used to specify nnnn. /M text Specifies the message to display before the prompt. If not specified, the tool only displays the prompt. /? Displays help message. Note: The ERRORLEVEL environment variable is set to the key index selected from the choice set. The first choice listed returns 1, the second choice returns 2, and so on. If the key pressed by the user is not a valid choice, the tool beeps. If the tool detects an error condition, it returns an ERRORLEVEL value of 255. If the user presses Ctrl+Break or Ctrl+C, the tool returns an ERRORLEVEL value of 0. When using the ERRORLEVEL parameter in a batch program, order the parameters in descending order. Examples: CHOICE /? CHOICE /C YNC /M "Press Y to confirm, N to reject, or C to cancel." CHOICE /T 10 /C ync /CS /D y CHOICE /C ab /M "Select a for option 1, b for option 2." CHOICE /C ab /N /M "Select a for option 1, b for option 2." Attachments CHOICE.rar (16.42 KiB) |
|
| Floor2 Scott0902 | Posted 2006-07-05 00:21 |
| 中级用户 Posts 237 Credits 466 | |
|
Thanks to the LZ's excellent work! I've received it.
|
|
| Floor3 music0 | Posted 2006-11-04 02:02 |
| 新手上路 Posts 3 Credits 8 | |
| Floor4 qujiuduqing | Posted 2006-11-22 01:16 |
| 新手上路 Posts 5 Credits 10 | |
|
Thanks
|
|
| Floor5 hangyug | Posted 2007-01-14 02:26 |
| 初级用户 Posts 43 Credits 99 | |
|
Thank you, LZ. I've really been looking for this for a long time!!!
|
|
| Floor6 weilong888 | Posted 2007-01-14 03:33 |
| 银牌会员 Posts 548 Credits 1,270 | |
|
This good thing, accepted.
|
|
| Floor7 yesmao | Posted 2007-01-14 04:27 |
| 初级用户 Posts 18 Credits 35 | |
|
Just what was needed, thanks
|
|
| Floor8 lxmxn | Posted 2007-01-15 15:34 |
| 版主 Posts 4,938 Credits 11,386 | |
|
My XP system, it just works, thank you. |
|
| Floor9 gmy | Posted 2007-01-16 06:49 |
| 版主 Posts 392 Credits 1,113 | |
|
What improvements are there compared to the XP version?
|
|
| Floor10 zhenfu | Posted 2007-01-17 13:44 |
| 中级用户 Posts 21 Credits 204 | |
|
Is it more N than in XP?
|
|
| Floor11 fastslz | Posted 2007-01-18 04:22 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
| Floor12 oilio | Posted 2007-01-30 01:23 |
| 高级用户 Posts 303 Credits 641 | |
|
Well, I used to write small batch scripts according to examples, but there was no choice before. Now it's fine, thank you, the thread starter!
|
|
| Floor13 taoty | Posted 2007-02-07 11:15 |
| 中级用户 Posts 112 Credits 275 | |
|
Sweat, I thought this command was streamlined because I'm using a streamlined version system.
|
|
| Floor14 wangxiangtcm | Posted 2007-02-09 09:02 |
| 初级用户 Posts 10 Credits 21 | |
| Floor15 kpshare | Posted 2007-02-22 03:34 |
| 初级用户 Posts 23 Credits 58 | |
|
Although it can be used, but after entering the choice command, Chinese can no longer be displayed, only displayed as???, and Chinese cannot be input, only can input Chinese, how to solve this ah!!!
(注:原句中“解快”应为“解决”,但按照要求只进行翻译,不进行修改错误字词的修正说明,所以直接按原文翻译,只是将“解快”保留原文,因为翻译要求是不修改原文内容,只进行语言转换。不过其实严格来说这里“解快”是错别字,正确应该是“解决”,但按照指令要求,不能修改原文内容,所以保留原文进行翻译。) |
|
| 1 2 3 4 … 5 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |