2k/XP miss choice.exe... anything else?

February 5, 2010 at 16:06:30
Specs: Windows 7 Ultimate x64, 4 GB
Choice.exe was introduced with MS-DOS 4.0.
Then, Microsoft removed it in Windows 2000.
And put it back again in Windows Vista.

I'm wondering, is there any other tools like choice.exe that are part of Windows Vista/7, but doesn't exist in Windows 2k/XP.

I'm asking because I'm making batch files under Windows 7, and if specific tools used in my batch file doesn't exist in earlier versions of Windows, my batch becomes incompatibile with those operating systems.


See More: 2k/XP miss choice.exe... anything else?

Report •


#1
February 5, 2010 at 16:11:05
I think DOS and DOS based windows use choice.com


=====================================
Helping others achieve escape felicity

M2


Report •

#2
February 5, 2010 at 16:14:53
Hmm, you are correct.
I just found out that all Windows NT based operating systems didn't have that tool until it was introduced again in Windows Vista as choice.exe.

Are there any other tools that have been omitted like this one, i.e. they are present in Windows 7, but weren't before?


Report •

#3
February 5, 2010 at 16:27:46
I think it was put back in XP.

But regardless. To your point, you could post a list of suspect commands and somebody who *HAS* 2K [or whichever] can check.


=====================================
Helping others achieve escape felicity

M2


Report •

Related Solutions

#4
February 5, 2010 at 17:19:30
Maybe with SP3, but XP with SP2 doesn't have it.

I have XP install in VirtualBox so I could test my batch files both in 7 and XP, and that's when I found out I don't have choice.exe in XP.

Googled a bit, and found out that XP indeed doesn't have it.


Report •

#5
February 7, 2010 at 07:17:13
> I think it was put back in XP.

Sigh ... everybody has the right to be wrong sometimes ...

http://www.itags.org/msdn/543229/

Keep in mind there is something like CHOICE.COM and CHOICE.EXE ... but if you have always coded "CHOICE", and not WITH the extension, you are safe. Don't ever use extensions on OS commands, unless you know what you do.

To the threadstarter ... ROBOCOPY is present in Vista, not in XP.

If you really want to have more details, run these commands on all concerned OS'es, and compare the full output :

SET /?
FOR /?
IF /?


Report •

#6
February 7, 2010 at 12:37:22
"But regardless. To your point, you could post a list of suspect commands and somebody who *HAS* 2K [or whichever] can check."
i can pm lists of commands from older windows versions down to win95 if you want to check, or post them on pastebin for you to get (i guess they'll let me do that).
i have winME, win98 and win95, not win2000 though.


Report •

#7
February 7, 2010 at 15:53:32
You could do that ... but rather than spending time and coming to the same conclusion, just look on the net for such information. This took me 30 seconds to find, look at the section entitled "A few new command line tools"

http://articles.techrepublic.com.co...


Report •

#8
February 7, 2010 at 17:12:26
@nbrane
That won't be necessary, I guess it won't be hard for me just to google when using a new command.

After all, I can always boot into one of Virtual OSes and check if it works.

Tkanks for help everyone.


Report •

#9
February 8, 2010 at 05:10:06
Doesn't sound too bad of an idea ... one way of proceding:

- introduce CHOICE on your XP's (if necessary)
- introduce ROBOCOPY as well (if necessary)
- just copy the scripts from Vista/7 to XP, and just run them, see what happens


Report •

#10
February 8, 2010 at 05:37:00
If you need to have these scripts where you can't introduce additional executables, you'll need to either modify your script's logic, or you'll need to go with VBScript/JScript.

Report •

Ask Question