1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Dos Menus nad Input

Discussion in 'DOS/Other' started by TMLewiss, Feb 8, 2003.

Thread Status:
Not open for further replies.
  1. TMLewiss

    TMLewiss Thread Starter

    Joined:
    Feb 8, 2003
    Messages:
    16
    Is there anyway to make a menu in DOS that allows you to just press the option you want and it goes to it without you haveing to press enter. EX:

    echo 1. +Programs
    echo 2. +Graphics
    echo 3. +Games
    echo 4. +Music
    echo 5. Notepad
    echo 6. Exit
    :Mainl
    set /P CH="Choice: "
    if "%CH%"=="1" goto Programs
    if "%CH%"=="2" goto Graphics
    if "%CH%"=="3" goto Games
    if "%CH%"=="4" goto Music
    if "%CH%"=="5" "%SystemRoot%\system32\notepad.exe"
    if "%CH%"=="6" exit
    goto Mainl


    Now is there a way to just hit 1 for option 1 and it goes there?
    I cant use the choice command because I have XP. Thank in advance.
     
  2. dtech10

    dtech10

    Joined:
    Jan 31, 2003
    Messages:
    53
    Hi
    I have WinXP Pro and the Choice commands works ok for me.
     
  3. iwasthere

    iwasthere

    Joined:
    Jan 30, 2003
    Messages:
    7
    in a DOS batch file there are different programs available ... some will look for "key entered" (and then "enter key pressed") ... others will look for "key touched" ...

    you might also consider looking at DOS batch file programming ... the "if" statement to determine what key sequence has been pressed ... (look for key scan codes as well as key codes) ...
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - Menus Input
  1. minimustangs
    Replies:
    5
    Views:
    1,411
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/117694

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice