Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Choice command replacement in XP  (Read 7975 times)

0 Members and 1 Guest are viewing this topic.

dr_ayad

  • Guest
Choice command replacement in XP
« on: April 08, 2007, 03:37:11 AM »
Hello everybody
will someone tell me what is the replacement command of
Choice in windows XP
& how can I create a simple Batch to ask the recipient to choice one of for ex. 3 choices then go to the choiced routine

with thanks

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: Choice command replacement in XP
« Reply #1 on: April 08, 2007, 03:55:34 AM »
You could try this

Code: [Select]
@echo off
echo.
echo. 1. Open ComputerHope.com
echo. 2. Start Calculator
echo. 3. Start Notepad
echo.
echo. Please enter either 1, 2, or 3
set /p a= :
if /i %a%==1 goto :1
if /i %a%==2 goto :2
if /i %a%==3 goto :3
:1
start www.computerhope.com
exit
:2
start calc.exe
exit
:3
start notepad.exe
exit

WillyW



    Specialist
  • Thanked: 29
  • Experience: Experienced
  • OS: Windows XP
Re: Choice command replacement in XP
« Reply #2 on: April 08, 2007, 09:11:18 AM »
Hello everybody
will someone tell me what is the replacement command of
Choice in windows XP
& how can I create a simple Batch to ask the recipient to choice one of for ex. 3 choices then go to the choiced routine

with thanks

I too just learned that choice is missing from XP.

You might like to check out:
http://hp.vector.co.jp/authors/VA007219/dkclonesup/choice.html

I got that url from a post by    ghostdog74     here.
http://www.computerhope.com/forum/index.php/topic,33190.0/all.html
« Reply #21 on: April 03, 2007, 11:01:08 AM »


I hope that helps.



.



dr_ayad

  • Guest
Re: Choice command replacement in XP
« Reply #3 on: April 08, 2007, 12:24:30 PM »
Thank you both for your help
It help me too much
thanks again

ghostdog74



    Specialist

    Thanked: 27
    Re: Choice command replacement in XP
    « Reply #4 on: April 08, 2007, 09:48:26 PM »
    Hello everybody
    will someone tell me what is the replacement command of
    Choice in windows XP
    & how can I create a simple Batch to ask the recipient to choice one of for ex. 3 choices then go to the choiced routine

    with thanks
    for the minimum,you can also use set /p. 
    see set /?

    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS
    Re: Choice command replacement in XP
    « Reply #5 on: April 08, 2007, 09:51:01 PM »
    yeah isn't set a replacement for choice?