#AmigaDOS ASK command
19 messages in this thread
Doug,
Thanks for the help. As I thought, it was something rather simple, but
without anything in the manual, I was stumped. This will be very helpful in
constructing useful execute files.
Darron
Darron,
Always happy to help. Why this wasn't in the manual, I don't know.
There are a couple of other undocumented things floating around out
there, like the /b switch on Amiga-IBM interface. Maybe Rob Peck will
document all of these 'missing commands' in his book. Rob, if you read
this, how about it?
Doug
ASK isn't an official ADOS command, is it? It's a PD extension; that's why
it's not in the manual.
Terry,
Check the 1.2 release of DOS. If it isn't official, then what is the
bugger doing in there? <grin>
Doug
Its an official command all right. The timeout option is a good suggestion.
Maybe in a future release…
andy
It's not in my copy of 1.2 DOS.
Terry,
I have word form on high that it is official in 1.2. Check your release
version WB c: directory. It had better be there, or it ain't 1.2
Doug
Doug,
I had to post a message on the board to find out about the /b switch in
the MS-DOS-Amiga aread and awrite commands, too! I'd sure vote in favor or Rob
putting these undocumented commands in his book. By the way, I'm getting a
great deal of good out of Rob's Amiga Programmer's Guide (I _think_ that's the
title anyway — good book, by whatever title!)
Darron
There is another PD program called CommandReq, that puts up a requestor, and
lets you pick YES or NO as to whether a particular command should be executed.
It's better than ASK, because it has a timeout feature, that will assume YES or
NO, depending on how you invoke it, if you don't select anything within a
certain amount of time that you specify. I use it in my startup sequence a
lot, for instance to decide whether or not CONMAN and FUNCKEY should be used or
not. I give myself 3 seconds to select NO, or else by default, they are
active. Leave me a message if it's not in any DL here, and I'll put together an
ARC file and upload it.
Terry, thanks for offering to upload CommandReq but it is already here in DL9
COMREQ.ARC.
Marlene
Terry,
Sounds good; I'll check out CommandReq and will let you know if I can't
find it. Thanks for the help.
Darron
Darron,
Kevin Helms recently uploaded a beautiful little program that allows you to
do exactly what you want. It's called Select, (SELECT.ARC in DL 9), and works
like this:
In a script file, you place the line…
select games programming wordprocessor database whatever
and when executed, Select puts up a window with all the choices you specified
on the command line, plus a CANCEL option, in gadgets. A click on any of the
gadgets will execute a file in your S: directory of the same name as you
specified. In the above example, 'database' or 'wordprocessor' would be fecthed
from S:, and it miht do a few ASSIGNs if needed, perhaps a CD, and run your
favourite word processor or database. 'games' and 'programming' would probably
have another Select command within them, perhaps something like:
select assembler modula-2 C Icon
which in turn would fetch script files with the appropriate name and lead you
right to what you wanted to do.
It's a very nice tool, and I recommend it highly.
Regards, Larry.
Larry,
Select sounds like a great idea, and I'll certainly take a look at it.
It sure pays to ask questions around here! Not only have I gotten the answer
to my original questions, but I've gotten at least two suggestions for how to
do the same thing a better way. I guess all the $ I spent on CIS is really
worth it! Thanks again.
Darron
Darron,
Glad you got what you were looking for. We like to think that money spent on
the Amigaforum is money well spent. As long as you watch your usage and take
steps to minimize cost, the benefits can far outweigh it.
Regards, Larry.
Larry,
I certainly think I'm getting my money's worth — it's just that we got
our credit card bill with the CIS charges the other day and I had to spend a
little time defending this particular budget item, a event which was fresh in
my mind when I wrote that last message! I keep coming back, what else can I
say? Thanks again for the help; keep up the good work.
Darron
Darron,
Have you read SAVMON.HLP in DL 1? It details a number of techniques that
should save you money on the forum.
Regards, Larry.
Larry,
I have read SAVMON.HLP and have taken a number of its excellent
suggestions to heart. What I need is some will power to cut down on my on-line
addiction! I really did not mean to sound so critical of CIS in my last
message; it's just that I'd received a short lecture on "fiscal responsibility"
and the relevance of my monthly on-line charges to that concept shortly before
posting that last message and I guess the subject was still too much on my
mind. I'm hooked on my Ami and on this conference, so I guess my budget will
just have to adjust. Keep up the good work.
Darron
Darron, are you creating msgs offline, downloading the msgs you want to read
offline? Read SAVMON.HLP and EZSIG.HLP in DL1.
Marlene
Marlene,
Yes, composing messages off-line really helps. I cringe to think what
my charges would be otherwise! Thanks for your interest.
Darron