Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cbmvax!jesup From: jesup@cbmvax.commodore.com (Randell Jesup) Newsgroups: comp.sys.amiga.programmer Subject: Re: System call in 2.0 Message-ID: <20255@cbmvax.commodore.com> Date: 2 Apr 91 08:15:17 GMT References: <1991Apr2.051333.28230@marlin.jcu.edu.au> Reply-To: jesup@cbmvax.commodore.com (Randell Jesup) Organization: Commodore, West Chester, PA Lines: 25 In article <1991Apr2.051333.28230@marlin.jcu.edu.au> cpca@marlin.jcu.edu.au (Colin Adams) writes: >I've been having some minor problems with the System() call (dos.lib) in >AmigaDOS 2.0. It works fine when I specify input/output streams that >are taken from the DOS Input() && Output() calls. >But when I open a filehandle to the current window >file = Open("*",MODE_OLDFILE) > >and pass file to System() to specify input/output, then none of the programs >in the c: directory (eg. dir, list, copy) function correctly. > System("copy",tagarray); > >brings the system down in a big way. You need two _different_ filehandles for System(). Open "*" twice, once as OLDFILE, once as NEWFILE. -- Randell Jesup, Keeper of AmigaDos, Commodore Engineering. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.commodore.com BIX: rjesup Disclaimer: Nothing I say is anything other than my personal opinion. Thus spake the Master Ninjei: "To program a million-line operating system is easy, to change a man's temperament is more difficult." (From "The Zen of Programming") ;-)