-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dilwyn Jones wrote:
> 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
>
Excellent. I saw that idea too Googling just now.
What wallies they were removing the 'choice' command which did it quite
neatly from day one.
Tony
- --
QBBS (QL fido BBS 2:257/67) +44(0)1442-828255
[EMAIL PROTECTED] http://firshman.co.uk
Voice: +44(0)1442-828254 Fax: +44(0)1442-828255 Skype: tonyfirshman
TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG7bWDM3RzOs8+btoRAggRAJ9Mi6+2aQ/y9xI3aU9zrxymheYwfQCdEnx/
EBqoZU3JnxoM5ezcbDPINe0=
=c+9d
-----END PGP SIGNATURE-----
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm