Computing.Net > Forums > Disk Operating System > batch file that gives you a menu of files to load

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 that gives you a menu of files to load

Reply to Message Icon

Name: aka c00l
Date: May 15, 2000 at 07:37:51 Pacific
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: john westerman
Date: May 15, 2000 at 08:27:32 Pacific
Reply:

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.


0

Response Number 2
Name: Dev
Date: May 16, 2000 at 06:03:04 Pacific
Reply:

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.


0

Response Number 3
Name: AKA C00l
Date: May 16, 2000 at 08:02:53 Pacific
Reply:

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

thanx!


0

Response Number 4
Name: !
Date: May 16, 2000 at 12:15:54 Pacific
Reply:

R T F M


0

Response Number 5
Name: The Pirate
Date: May 16, 2000 at 19:37:39 Pacific
Reply:

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.bat

A:\SMARTDRV.exe /X
@ECHO OFF
PROMPT $p$g
PATH C:\DOS
SET TEMP=A:\TEMP

REM ========== 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.sys

DEVICE=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


0

Related Posts

See More



Response Number 6
Name: I bow to your knowledge..
Date: May 18, 2000 at 07:01:35 Pacific
Reply:

My Mr Pirate, That is a good reply.

Keep it up!

I always read your replys and lean.

You are my Hero.

Ho Ho


0

Response Number 7
Name: Moi
Date: May 18, 2000 at 07:52:38 Pacific
Reply:

Indeed Pirate!! Nice one!!!
I will definitely use this for myself!

Thnx


0

Sponsored Link
Ads by Google
Reply to Message Icon






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 that gives you a menu of files to load

batch file that gives you a menu of files to load www.computing.net/answers/dos/batch-file-that-gives-you-a-menu-of-files-to-load/2971.html

Batch files - check directory www.computing.net/answers/dos/batch-files-check-directory/10295.html

Inputing to a Batch file www.computing.net/answers/dos/inputing-to-a-batch-file-/233.html