Win7 CHOICE

February 17, 2011 at 23:26:57
Specs: Windows 7

Sleeping 10 secs in DOS
is any of below 2 lines

CHOICE /C YN /D Y /T 10 >nul

or,

CHOICE /D Y /T 10 >nul


See More: Win7 CHOICE

Report •


#1
February 17, 2011 at 23:46:44
What are you trying to do with /D?


=====================================
Life is too important to be taken seriously.

M2


Report •

#2
February 18, 2011 at 02:33:47
/d means choose following option as default , in this case after 10 secs Y will be chosed. Right ?

Subhash Chandra.


Report •

#3
February 18, 2011 at 02:37:09
may be you can go through http://www.computing.net/howtos/sho...

Subhash Chandra.


Report •

Related Solutions

#4
February 18, 2011 at 02:59:13
LOL

I have choice from DOS 6.22 & 7.10 and neither has a /D option.


=====================================
Life is too important to be taken seriously.

M2


Report •

#5
February 18, 2011 at 06:35:29
Here's a question I've been meaning to ask: where do people get "Disk Operating System" from "Command Prompt?" WHERE IS THAT 'S' COMING FROM?! I MUST KNOW!

How To Ask Questions The Smart Way


Report •

#6
February 18, 2011 at 08:06:58
@M2, Sorry I was talking about the choice which comes with windows 6.0 and above.

Razor... May be M2 managed to get DOS 6.22 to come under command prompt by some magical way. I have it installed in my cell phone.

Subhash Chandra.


Report •

#7
February 18, 2011 at 13:16:50
subhash chandra: May be M2 . . .
Oh, I know where Mechanix2Go got it. He got it from theSWking. What I want to know is where theSWking (and, like, 80% of the people here) get it.

How To Ask Questions The Smart Way


Report •

#8
February 18, 2011 at 14:02:43
only theSWking can answer.. Would love to see the answer..Interesting enough....

Subhash Chandra.


Report •

#9
February 19, 2011 at 03:48:00
I also have choice.exe from some ver of NT. It doesn't have a /D either.

To the original point, OP's usage is about as wrong as it gets.

choice /Ty,10


=====================================
Life is too important to be taken seriously.

M2


Report •

#10
February 19, 2011 at 04:05:05
CHOICE has been re-added to Win7, in the following form:
C:\>choice /?

CHOICE [/C choices] [/N] [/CS] [/T timeout /D choice] [/M text]

Description:
    This tool allows users to select one item from a list
    of choices and returns the index of the selected choice.

Parameter List:
   /C    choices       Specifies the list of choices to be created.
                       Default list is "YN".

   /N                  Hides the list of choices in the prompt.
                       The message before the prompt is displayed
                       and the choices are still enabled.

   /CS                 Enables case-sensitive choices to be selected.
                       By default, the utility is case-insensitive.

   /T    timeout       The number of seconds to pause before a default
                       choice is made. Acceptable values are from 0 to
                       9999. If 0 is specified, there will be no pause
                       and the default choice is selected.

   /D    choice        Specifies the default choice after nnnn seconds.
                       Character must be in the set of choices specified
                       by /C option and must also specify nnnn with /T.

   /M    text          Specifies the message to be displayed before
                       the prompt. If not specified, the utility
                       displays only a prompt.

   /?                  Displays this help message.

   NOTE:
   The ERRORLEVEL environment variable is set to the index of the
   key that was selected from the set of choices. The first choice
   listed returns a value of 1, the second a value of 2, and so on.
   If the user presses a key that is not a valid choice, the tool
   sounds a warning beep. If 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 you use ERRORLEVEL parameters in a batch program, list
   them in decreasing order.

Examples:
   CHOICE /?
   CHOICE /C YNC /M "Press Y for Yes, N for No or C for Cancel."
   CHOICE /T 10 /C ync /CS /D y
   CHOICE /C ab /M "Select a for option 1 and b for option 2."
   CHOICE /C ab /N /M "Select a for option 1 and b for option 2."

How To Ask Questions The Smart Way


Report •

#11
February 19, 2011 at 11:19:54
yup, That was what i was talking about, Choice from winddows 7 (Windows version 6.0 and above).

Subhash Chandra.


Report •

#12
February 19, 2011 at 20:50:10
Yes, sport fans, another addition to the ever-burgeoning collection of non-DOS DOS questions.


=====================================
Life is too important to be taken seriously.

M2


Report •


Ask Question