Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I want to create a batch file that shows a menu with corresponding numbers so that all you have do do is press a number and the program / file is opened, I think you do something like echo "menu here..."
then inkey$ or something to get the correct key but im not sure
thanx

ok - use the Echo command to draw the menu. using echo. you can insert blank lines.
after that has been drawn, use the choice command to select them. the syntax for choice is:
choice /c:123456789
this will allow you to enter numbers 1 to 9 as valid entries.
Note - choice returns an errorlevel value. Errorlevel 1 to how ever many are in the list. When determining the value, the errorlevels must go in reverse order (ie. 9 to 1). Errorlevel 1 is always the first choice in the choice command.

Try Norton Batch Editor, part of Norton Utilities. www.powerload.fsnet.co.uk has a copy of NU 4.5A for download. With it you can also draw boxes and edit screen/text colors.

cheers guys, looks easy enough but any chance of a working example so that i can see exactly what to do
thanx!

HAHAHAHAHA
Why not!
DOS 6.22 boot disk with CD drivers giving options to run
1. to standard DOS prompt
2. Efdisk (Disk partition proggie)
3. Ghost (from Norton)
4. Interlnk
5. Intersvr
6. Fastlynx
CD drivers, Fastlynx and Temp files are in separate directories.
Autoexec.batA:\SMARTDRV.exe /X
@ECHO OFF
PROMPT $p$g
PATH C:\DOS
SET TEMP=A:\TEMPREM ========== By ASUS CD-ROM driver ===========
A:\MSCDEX.exe /D:ASUSCD01 /V
REM ============================================rem - Go to the section that matches current value of the CONFIG variable
goto %config%:std
goto end:eef
efdisk
goto end:gho
ghost
goto end:lnk
goto end:svr
intersvr
goto end:lynx
a:\fastlynx\fx
goto end:end
Config.sysDEVICE=A:\HIMEM.SYS
DEVICE=A:\SETVER.exe
FILES=30
DOS=HIGH[menu]
menuitem=std,Floppy Drive - Dos Prompt
menuitem=eef,Efdisk
menuitem=gho,Ghost
menuitem=lnk,Interlnk
menuitem=svr,Intersvr
menuitem=lynx,FastLynx
menudefault=std,15
menucolor= 1,[std]
[eef]
[gho]
[lnk]
device=a:\interlnk.exe[svr]
[lynx]
[COMMON]
REM ========== By ASUS CD-ROM driver ===========
DEVICE=A:\CD\ASUSCD.SYS /D:ASUSCD01
LASTDRIVE=Z
REM ============================================
Btw - blue text on a black blackground for vga and higher monitors.
Auto select of no choice made.have fun
HAHAHAHAHAHA

My Mr Pirate, That is a good reply.
Keep it up!
I always read your replys and lean.
You are my Hero.
Ho Ho

![]() |
![]() |
![]() |

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