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

Author Topic: Can a prompt for set /p be placed at the end of a line of text?  (Read 2704 times)

0 Members and 1 Guest are viewing this topic.

The Raddish

    Topic Starter


    Rookie

    In XP, the choice command no longer exists.  I have set /p.

    I can't add external commands to the computer, so I'm stuck with the default.

    With choice, I can have the prompt displayed at the end of a line of text.

    Example:
    Code: [Select]
    choice /c:qnp /n /m "Please choose- "
    Can I get the exact same functionality using set /p in XP?

    Salmon Trout

    • Guest
    Re: Can a prompt for set /p be placed at the end of a line of text?
    « Reply #1 on: May 11, 2010, 03:40:08 PM »
    You can do this

    Code: [Select]
    set /p answer="Please choose- "
    but you will not get the "exact same funcionality" since choice responds to a single key press but set /p responds to a string of zero or more characters plus ENTER.