Correct, it's not supported in Win XP at least. Shame, "choice" was a
good option to use. I saw how to use it in a batch files tutorial
online and so much of that tutorial seemed to only apply to "real"
DOS, not the "pretend" one in Win XP. Any other way of asking the user
to press a key? - I understand what "errorlevel" does and how to goto
menus and so on, so any way of asking for a selection would be great.

I hope to be able to use relative paths so that I can try to make the
batch files work from the current directory where it's started from to
start the relevant emulator, to work around the problem that you can't
predict which drive letter the user's computer will assign to the USB
drive.

e.g. if the batch file qlay.bat is in the root and qlay2.exe is in a
directory called \qlay2\ then this should (I hope, not tried it yet)
start qlay2.exe, and I'll try to configure the emulators to look for
their file systems via a relative directory too:

\qlay2\qlay2.exe

The only other way I can think of asking for user input is to use SET 
with the /P option, but I don't know if this works with older DOSes or 
not (I might raid my wife's laptop in a minute to find out as that has 
Win 98 on it):

SET choice=
SET /P choice=Select option 1 to 4


-- 
Dilwyn Jones


----- Original Message ----- 
From: "Stephen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 16, 2007 8:59 PM
Subject: Re: [Ql-Users] batch file


> Dilwyn Jones wrote:
>> 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.
>
> I think Tony intended:
>
> choice Which one? /C:1234
>
> However, choice.com (or choice.exe) was not included with later
> versions
> of DOS so you may need to download it.
> -- 
> Regards,
>
> Stephen
> _______________________________________________
> 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