-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tony Firshman wrote:
> Dilwyn Jones wrote:
>> I need some help to create a little DOS batch file to select QL
>> emulators.
>
>> My flash memory drive has QPC, QemuLator and QLay on it, so I need to
>> write a short batch file to select which one to start. Something in
>> dos along the lines of:
>
>> Which would probably involve some echo commands etc, but I don't know
>> how to ask for input in dos.
>
> cls
> echo 1-QPC2
> echo 2-QemuLator
> echo 3-QLay
> echo 4-Quit
>
> echo Which one? /C:1234
> IF errorlevel 4 goto QUIT
> IF errorlevel 3 goto QLAY
> IF errorlevel 2 goto QEMULATOR
> IF errorlevel 1 goto QPC2
>
> :QUIT
> cls
> exit
>
> :QLAY
> echo QLAY
> c:\qpc2\qpc2.exe
> cls
> exit
>
> :QEMULATOR
> echo QEMULATOR
> c:\Q-emuLator\QemuLator.exe
> cls
> exit
>
> :QPC2
> echo QPC2
> c:\qlay2\qlay2.exe
> cls
> exit
>
Better version:
:MENU
cls
echo 1-QPC2
echo 2-QemuLator
echo 3-QLay
echo 4-Quit
echo Which one? /C:1234
IF errorlevel 4 goto QUIT
IF errorlevel 3 goto QLAY
IF errorlevel 2 goto QEMULATOR
IF errorlevel 1 goto QPC2
:QUIT
cls
exit
:QLAY
echo QLAY
c:\qpc2\qpc2.exe
goto MENU
:QEMULATOR
echo QEMULATOR
c:\Q-emuLator\QemuLator.exe
goto MENU
:QPC2
echo QPC2
c:\qlay2\qlay2.exe
goto MENU
Of course you replace 'c:' with the flash drive letter, as you put all
batch files in c:\batch and included that in the PATH (of course you
have (8-)# )
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
iD8DBQFG7XU9M3RzOs8+btoRAiqLAJ48l9iOTubs/SaHxcvgRP2t6onBQwCfcr3X
ePDX1qPATZw6LIbXZ5MQLEg=
=v7eP
-----END PGP SIGNATURE-----
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm