Path: utzoo!mnetor!uunet!husc6!mailrus!nrl-cmf!ames!pasteur!agate!eris!spencer From: spencer@eris (Randal m. Spencer [RmS]) Newsgroups: comp.sys.amiga Subject: Re: Input from keyboard in startup-sequence Message-ID: <7420@agate.BERKELEY.EDU> Date: 6 Mar 88 18:50:45 GMT Sender: usenet@agate.BERKELEY.EDU Reply-To: spencer@eris.berkeley.edu (Randal m. Spencer [RmS]) Distribution: na Organization: Infinity Software :-) Lines: 34 Recently on *comp.sys.amiga* ken@umbc3.UMD.EDU (Ken Spagnolo ) wrote: ...I would like to have an if-then-else structure in my startup-sequence ...that would prompt me to see if I wanted to load up certain files (or ...whatever). But I don't know how to get it to wait for input from the ...keyboard during startup. Even EXECUTE needs to see the args on the ...command line that calls it. Anyone pull this off? Thanx. I have only seen this once (for those of you who don't have the A2000/500 workbench disk that has the ASK program in the C: directory. The way it was done was to create a directory called "yes" or just 'y' on the disk and then add the command string: Echo "Do you want to load WorkBench?" CD > nil: ? IF NOT WARN LoadWB EndIF If the directory that CD is asked to go to doesn't exist it will set a return code, so that if the answer to "Do you want to load WorkBench?" is "no" or something that doesn't exist (so the answer can't be "devs:printers" :'), than the CD will fail and if it fails the LoadWB is never executed. I know that isn't the easiest way to do it, but at least it works without having to get a command that isn't guaranteed to be on all WorkBench disks. Cute, huh? ... ...Ken Spagnolo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Randy Spencer P.O. Box 4542 Berkeley CA 94704 (415)222-7595 spencer@mica.berkeley.edu I N F I N I T Y BBS: (415)222-9416 ..ucbvax!mica!spencer s o f t w a r e AAA-WH1M -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-