Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!husc6!harvard!caip!lll-crg!lll-lcc!pyramid!amiga!bruceb From: bruceb@amiga.UUCP (Bruce Barrett) Newsgroups: net.micro.amiga Subject: Re: AMIGA DIRECTORY PRINT Message-ID: <1112@amiga.amiga.UUCP> Date: Tue, 6-May-86 12:04:32 EDT Article-I.D.: amiga.1112 Posted: Tue May 6 12:04:32 1986 Date-Received: Wed, 7-May-86 06:15:29 EDT References: <147@ecs.OZ> Reply-To: bruceb@hunter.UUCP (Bruce Barrett) Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 33 Keywords: Can't make it go ! In article <147@ecs.OZ> sjl@ecs.OZ (Stephen Lamb) writes: > >I have tried...'dir lib10: opt a to prt:' ,and the response is >'bad arguments' ... > >Thanks in advance, > > Stephen Lamb, > > ACSnet :sjl@ecs.OZ Stephen, This is a common request for people without the AmigaDOS manuals. The way to find out what is going on is to type: DIR ? The response is: DIR,OPT/K: _ This means that DIR takes 2 arguments, neither is required (/A), the second must have the "OPT" keywork in addition to the value you want to assign to OPT (/K). The options for DIR are A (for all) and I (for interactive). There is no way to determine this from the "DIR,OPT/K: _" help line. Redirection is done BEFORE any other other parameters. So... what you want is: DIR >prt: LIB10: opt a This is "so easy" to do it does make one wonder why some commands (like TYPE) have a "TO" parameter. Must be TO confuse Austrailians :-). To redirect input and output use: foo output p1 p2 p3 or foo >output