中国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-09-23 14:09
47,812 topics / 349,917 posts / today 0 new / 48,273 members
DOS批处理 & 脚本技术(批处理室) » Why can't the batch command choice be executed under DOS?
Printable Version  2,205 / 11
Floor1 dengyongbin Posted 2004-02-05 00:00
初级用户 Posts 3 Credits 113
Why can the batch command choice be executed under MS-DOS but not under pure DOS?

Floor2 骨灰龙 Posted 2004-02-06 00:00
中级用户 Posts 22 Credits 206
The choice can only be used in operating systems of Windows XP and above.
Floor3 Az Posted 2004-02-06 00:00
初级用户 Posts 14 Credits 159
So, maybe it has something to do with the DOS version of choise..
Floor4 骨灰龙 Posted 2004-02-06 00:00
中级用户 Posts 22 Credits 206
Yes. Versions above 7.1 can be used.
Floor5 willsort Posted 2004-02-06 00:00
元老会员 Posts 1,512 Credits 4,432
Re dengyongbin:

Maybe the %path% search path is not set.

Re 骨灰龙:

Your understanding is very problematic. Starting from DOS6, there has been choice, and the same version of the system can be completely mutually compatible. The choice under 98 can completely be used in the pure DOS mode of DOS7.1. The problem of dengyongbin is probably not related to the version.
Floor6 dengyongbin Posted 2004-02-06 00:00
初级用户 Posts 3 Credits 113
Thank you for everyone's enthusiastic help!
Floor7 骨灰龙 Posted 2004-02-09 00:00
中级用户 Posts 22 Credits 206
Re: willsort

Thanks for the advice. It's indeed my mistake. I apologize for my previous comment.
But I found that there are actually two versions of choice.
In win2003server, there is a file called choice.exe, while the choice we are talking about is the choice.com file that comes with DOS. The two files are very different in size but have the same function.
Choice.exe can indeed only be used in systems above XP.
Floor8 pizigao Posted 2004-02-09 00:00
银牌会员 Posts 292 Credits 1,063
Can it be extracted? I want it!
Floor9 willsort Posted 2004-02-10 00:00
元老会员 Posts 1,512 Credits 4,432
Re: Ashes Dragon:

So that's how it is. I know very little about WINNT. That CHOICE.EXE is probably a 32-bit version.

After all that talk, it all comes down to blaming MS, what a lot of trouble they've caused. I can't find CHOICE.EXE in WINXP, and there's no choice.com either, which makes writing BATCH very headache-inducing for me.

Also, just now I found out that EDLIN, which was popular in DOS3 but disappeared after DOS6, has made a comeback in XP, only now it's changed from COM to EXE. Why go through all that?
Floor10 骨灰龙 Posted 2004-02-11 00:00
中级用户 Posts 22 Credits 206
Re: willsort
Exactly, Microsoft doesn't know what it's up to. Maybe it found something still useful, so it brought it back and renamed it to pass off.

But that CHOICE.EXE. It supports Chinese display in WIN2003 SERVER. But it can't be used in system versions lower than XP. What a big flaw or loss.
Floor11 死性不改 Posted 2004-06-24 00:00
中级用户 Posts 88 Credits 378
I'm looking for it too!
Floor12 Climbing Posted 2004-06-25 00:00
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
Compatibility issues with different versions of software have always been an inherent problem with M$ systems. Not to mention that commands under 2000 can't be used under DOS 7.1. Have you ever tried using DOS programs of different versions with each other? For example, have you tried using the command.com of DOS 7.1 under 6.22? It simply doesn't work. Even third-party developed programs have similar compatibility issues, so the higher version of DOS has a setver.exe.

But I guess this problem probably exists in UNIX as well. When the system is upgraded, many library files that software depends on also change, and of course, the commands that depend on a certain library can't run either.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023