Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ncrlnk!ncr-mpd!santana..FtCollins.NCR.com!chipb From: chipb@santana..FtCollins.NCR.com (Chip.Brewster) Newsgroups: comp.sys.amiga Subject: Dynamic Startup-Sequence Message-ID: <530@ncr-mpd.FtCollins> Date: 20 Sep 90 22:54:26 GMT Sender: uucp@ncr-mpd.FtCollins Reply-To: chipb@santana..FtCollins.NCR.com (Chip.Brewster) Organization: NCR Microelectronics, Ft. Collins, CO Lines: 27 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. 423