chipb@santana..FtCollins.NCR.com (Chip.Brewster) (09/21/90)
I read with interest the recent postings on QMouse and how to use the
left mouse button to change the boot startup. What I would like to
do is test if a disk is inserted in df1: and execute df1:s/Startup.
And do this without requiring a disk to be in df1: or bringing up a
system requester. I've looked at "assign >nil: df1: exists" but df1:
always exists. I can't use the volume name because this will vary.
What I ended up doing is using Matt Dillon's (et al.) CShell since I
info | input JUNK DF0 DF1
if -n $DF1 = "DF1: No disk present"
if -f DF1:s/Startup.sh
run RAD:c/csh -c "source DF1:s/Startup.sh"
...
What I'd like to do is avoid running CShell during startup and perform
an equivalent test in CLI. What I'd really like is a generalized QMouse
that performs tests specified on it's command line (e.g. UNIX test(1)).
Any suggestions? I'm already thinking of writing one for my first
Amiga C project.
Chip Brewster
UUCP: uunet!ncrlnk!ncr-mpd!bach!chipb
ARPA: Chip.Brewster@FtCollins.NCR.com
USPS: NCR Microelectronics, 2001 Danfield Ct. MS-470A, Fort Collins, CO, 80525
BELL: (303) 223-5100 ext. 423peterk@cbmger.UUCP (Peter Kittel GERMANY) (09/24/90)
In article <530@ncr-mpd.FtCollins> chipb@santana..FtCollins.NCR.com (Chip.Brewster) writes: > What I would like to >do is test if a disk is inserted in df1: and execute df1:s/Startup. When you want this to do in a script without a new program, then I have a solution for you IF you work under KS 1.3: Do a info >ram:inf df1: search >ram:inf1 ram:inf "No disk present" if warn echo "There is a disk in df1:" ; or do something else here endif delete ram:inf ram:inf1 Under 2.0 I had problems with the flags not set by the search command, but this may get fixed. -- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions... Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk