Welcome to Dream.In.Code
Become an Expert!

Join 149,507 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,339 people online right now. Registration is fast and FREE... Join Now!




[DOS] choice doesnt work for me?

 
Reply to this topicStart new topic

[DOS] choice doesnt work for me?

ą__
5 Aug, 2007 - 06:09 PM
Post #1

New D.I.C Head
*

Joined: 5 Aug, 2007
Posts: 5


My Contributions
hi, learning up on dos i find a helpful command called choice.. so i spent a short while making a little script to run which depended alot on choice and come to run it, getting the 'choice is not recognised as an external or internal command..' etc.

so i decide to google it a bit more and it looks like its a legimate command but for some reason it doesnt word with me?
thanks for any help
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: [DOS] Choice Doesnt Work For Me?
5 Aug, 2007 - 07:09 PM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 9,481



Thanked: 161 times
Dream Kudos: 9050
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
The DOS choice command is available in MS-DOS 6.0+, Windows 95 & Windows 98.

The choice syntax is

choice [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]


Options:
/C[:]choices Specifies allowable keys. Default is YN
/N Do not display choices and ? at end of prompt string.
/S Treat choice keys as case sensitive.
/T[:]c,nn Default choice to c after nn seconds
text Prompt string to display

The Windows 2000 and Windows XP replacement for choice is the SET command

The SET syntax is

SET [variable=[string]]

Options:
variable Specifies the environment-variable name.
string Specifies a series of characters to assign to the variable.

MS-DOS Set Command
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 07:05PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month