Path: utzoo!attcan!telly!lethe!torsqnt!news-server.csri.toronto.edu!rutgers!cbmvax!cbmehq!cbmger!peterk From: peterk@cbmger.UUCP (Peter Kittel GERMANY) Newsgroups: comp.sys.amiga Subject: Re: AmigaDOS from BASIC.... Message-ID: <643@cbmger.UUCP> Date: 14 Dec 90 16:53:35 GMT References: <730026@hpmwngf.HP.COM> Reply-To: peterk@cbmger.UUCP (Peter Kittel GERMANY) Organization: Commodore Bueromaschinen GmbH, West Germany Lines: 27 In article <730026@hpmwngf.HP.COM> mikep@hpmwtd.HP.COM (Mike Powell) writes: > > I'd like to be able to launch programs from BASIC without killing > the BASIC program. I have used the CHAIN and the RUN commands, which > work fine, except BASIC closes all it's open files and windows and > just basically bows out. What was the phrase? Ah: "It's in there!" Just look into your Extras disk and look closely at the program "Library" in the BasicDemos drawer. It does exactly this (besides other things). Now, the interesting part of the program, where a List command is executed, is normally outcommented, because you have to assure one additional thing: To do things like this, you HAVE to invoke AmigaBASIC from Shell or CLI, NOT Workbench! To call DOS, AmigaBASIC needs this CLI background, else you get a real Guru. > The other thing I'd like to do is to have BASIC read a directory... > If I could just call the DIR command and re-direct it into a file > in ram: I'd be o.k. But that brings us back to the first problem > of launching a program.... See above. -- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions... Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk