Computing.Net > Forums > Disk Operating System > Batch File limiting characters

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch File limiting characters

Reply to Message Icon

Name: DarkGreen16
Date: September 2, 2004 at 00:25:29 Pacific
OS: XP
CPU/Ram: N/A
Comment:

Hey, Im trying to limit the amount of characters someone is allowed to use to 1.

This is what im working with

SET Choice=
SET /P Choice=What would you like to do?:
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%

so basically what would I have to add to that to make it so you can only input one character

Thanks in advance



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: September 2, 2004 at 02:49:30 Pacific
Reply:

Hi,

Use CHIOCE.COM from w98. It works in w2k, so it will almost surely work in xp.

M2

Mechanix2Go@Golden-Triangle.com


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch File limiting characters

how to find OS in batch file www.computing.net/answers/dos/how-to-find-os-in-batch-file/11085.html

Batch File - File name generate www.computing.net/answers/dos/batch-file-file-name-generate/3919.html

HELP ME WITH DOS BATCH FILES LINES PLEASE www.computing.net/answers/dos/help-me-with-dos-batch-files-lines-please/2496.html