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.

Solved: Batch choice command help?

Discussion in 'Windows Vista' started by Psycoblast, Nov 6, 2009.

Thread Status:
Not open for further replies.
Advertisement
  1. Psycoblast

    Psycoblast Thread Starter

    Joined:
    Aug 1, 2009
    Messages:
    45
    Hey guys its me again this time I need help with the batch choice command. I'm making a game and I need more letters to work with. I know how basic letters work heres an example.

    :confused::confused::confused::confused::confused:

    Example:

    CHOICE /C:ABCDEFGHIJKLMNOPQRSTUVWXYZ > NUL

    but is it possible to seperate lower case from upper case???
    by adding a shift key with all the letters a-z or somthing to that effect?

    Also how about symbols such as !@#$%mainly these !@#$%^&*.

    Sorry for such a stupied question but thanks anyways guys. (y)

    -Psycoblast
     
  2. TheOutcaste

    TheOutcaste

    Joined:
    Aug 7, 2007
    Messages:
    9,028
    The valid choice characters are: a-z, A-Z, 0-9 and ASCII values of 128 to 254
    The alphanumeric keys give you 62 choices.

    Add the /CS switch to make it Case Sensitive. (Choice /? shows this)
    To enter the ASCII codes, you need to use the Dos EDIT program to edit the file and add those.
    To edit the file using Edit, open a prompt and type:
    Edit mychoice.bat

    To enter the characters from 128-254, hold the ALT key and enter the 3 digit number on the Numeric key pad (you can't use the number keys above the alphabet keys).
    The character will be entered when you release the ALT key.
    You may have to use the left ALT key depending on your Language settings. On a laptop, you may have to turn on the embedded Numeric keypad, as ALT+FN+XXX doesn't always work.

    The characters that are displayed in say Notepad or other text editors will not match what you see in the prompt either.
    This is ALT+128 as seen in Notepad:
    €
    This is what it looks like in the Command Prompt:
    Ç

    And you do know that choice is not included with NT/Win2K/XP? And the WinME version will allow some punctuation, but the case sensitive switch is just /S, not /CS

    HTH

    Jerry
     
  3. Psycoblast

    Psycoblast Thread Starter

    Joined:
    Aug 1, 2009
    Messages:
    45
    Thanks i've been sarching the answer to this question for a very long time. I knew about the alt trick but never thought of using it in batch thanks again!!!

    -Psycoblast (y):D(y)
     
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...
Thread Status:
Not open for further replies.

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