After all the help I got off and on list I finally came up with this 
batch file, which seems to offer what I need. Corrections/suggestions 
welcome, especially comments on anything you think might not work in 
other windoze versions. I think this is the first batch file of any 
real length I've ever written so I'm bound to be a little pleased with 
myself...the experience was a bit like writing my first ever PE boot 
program many years ago ;-))

cls
@echo off
:START
echo QL ON A STICK
echo -------------
echo.
echo Welcome to the QL On A Stick package of
echo Sinclair QL emulators. Please select
echo which emulator you would like to use.
echo The QL User Guide may be viewed by
echo loading the file 'qlusersguide.pdf' into
echo a PDF file viewer.
echo.
echo 1-start QLay emulator
echo 2-start QemuLator shareware version
echo 3-start QPC2 demo version
echo 4-Quit
echo.
set choice=
set /P choice=Please enter 1 to 4 ^>
rem ensure only first character used
rem from position 0, 1 character only.
if not '%choice%'=='' set choice=%choice:~0,1%
IF '%choice%'=='1' goto QLAY
IF '%choice%'=='2' goto QEMULATOR
IF '%choice%'=='3' goto QPC2
IF '%choice%'=='4' goto QUIT
rem handle anything else entered
echo.
echo Sorry, '%choice%' is not a valid entry, please try again.
echo.
goto START
:QUIT
cls
exit
:QLAY
echo QLAY
cd qlay2
start qlay2.exe
cls
exit
:QEMULATOR
echo QEMULATOR
cd qemulator
start QemuLator.exe
cls
exit
:QPC2
echo QPC2
cd qpc2demo
start qpc2demo.exe
cls
exit

-- 
Dilwyn Jones

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to