Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!rochester!udel!mmdf From: C475141@umcvmb.missouri.edu (BRIAN WHITMAN) Newsgroups: comp.sys.amiga Subject: Another how do you do .... in AmigaDOS Message-ID: <17834@louie.udel.EDU> Date: 16 Jun 89 15:00:25 GMT Sender: mmdf@udel.EDU Lines: 32 I am attempting to write a general script file that when executed will will generate a more specific script file but I am having trouble. The general script file contains about four lines in it. The first three lines look something like the following: list >ram:md df1:%?.zoo lformat="makedir df1:%s.dir" list >ram:zf df1:%?.zoo lformat="df1:zoo -extract df1:%s.dir/%s list >ram:rn df1:%?.zoo lformat="rename df1:%s df1:%s.dir/%s Then I plan o preceding on to join these three files together and set the s bit with a protect and then execute the joined file. Sound simple eh? Well when I look at the file ram:md it looks fine, so far so good. Then when I look at ram:zf or ram:rn the trouble appears. Does the lformat keyword of the list command only use the last %s or what? My results in ram:zf look like this df1:zoo -extract df1:.dir/file_name ^ - there should have been file_name here too. also in the file ram:rn my results look similar: rename df1: df1:file_mane.dir/file_name ^ - again the file_name is missing. If this is invalid why? and how can I correct it? thanks Brian Whitman c475141@umcvmb.bitnet