Batch Files - Windows XP and the CHOICE command

G

Guest

HI all,
I am in the process of writing a batch file and need to be able to use the
CHOICE command in a batch file. The batch file is going to run on my own
computer (windows xp /w sp2 all patches) but xp does not seem to recognize
the choice command. Whats up with that? Is there an altnernative i can use
instead of choice? And why is choice listed in the a-z command reference if
it does not exist on windows xp sp2 installs?

thx
richie

--
-----------------
Richard Troiano
MIS/IT Assistant
Liberty American Mortgage
2281 Lava Ridge Court
Roseville, CA 95661
916-780-3000 ext 381
 
G

Guest

John,
Thanks a ton! that link is great! I will be sure to mark this as a helpful
post!

thanks again!

-
R Troiano
Project Specialist
HP
 
J

John John

You're welcome.

John

Richard said:
John,
Thanks a ton! that link is great! I will be sure to mark this as a helpful
post!

thanks again!

-
R Troiano
Project Specialist
HP


:
 
P

Pegasus \(MVP\)

"Choice" is not listed when I type Help /? at the Command
Prompt. It is, in fact, a Win9x command. Where did you see
it listed?

Under WinXP you use this syntax to obtain user input:

@echo off
set /p name=Please enter your name:
echo Hello, %name%
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top