Many thanks, although it doesn't actually work!

I presume echo /C: is meant to ask the user to enter something.
Running this on my machine at least just flashes up a dos command box
briefly and instantly vanishes, unless I'm doing something drastically 
wrong here.

So I started a command prompt and typed in echo /C:1234 to see what
would happen. It just print /C:1234 on the screen, whereas I wanted
somethign to ask the user to press 1 2 3 or 4. Asking for help on echo
or batch files doesn't really say anything about keypresses, so I
don't know what to do now, as I haven't got a dos book.

It's not actually for my own use - it's for the "QL On A
Stick" project. I just needed to put a little batch file in there to
make it easier for those less familiar with dos commands in Windows to
get the relevant emulator going.

Hopefully, QOAS will debut at the Quanta meeting in Birmingham, as
long as I'm able to get there (don't know for sure yet).

-- 
Dilwyn Jones

----- Original Message ----- 
From: "Tony Firshman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 16, 2007 7:26 PM
Subject: Re: [Ql-Users] batch file


> -----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
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.485 / Virus Database: 269.13.16/1005 - Release Date:
> 13/09/2007 11:45
>
>

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

Reply via email to