08 July 2003, 21:01 | #1 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
AmigaDOS help
How do I pass a filename from Dopus4 to an amigados script and back again?
Or how do I get a filename and use it elsewhere in my script? |
08 July 2003, 23:46 | #2 |
Registered User
|
Pass your filename to the script with the usual {f} option from dopus...
In the script have a .key, .bra & .ket line .key is a standard amigados template, .bra & .ket define chars to use as brackets, default is <> which causes problems, I change them to {} Here's a quick example that converts a dir from the Goldfish CD's into an ADF... iirc it's difficult to pass 2 variables from dopus unless thay are source & dest... ----------------------------- .key source,name .Bra { .ket } Echo "Working on Fish Disk {name}, _[43m _[40m" noline assign SD0: EXISTS >nil: if warn mount SD0: >nil: else del sd0:#? all force quiet >nil: endif Echo "_[43m _[40m" noline relabel drive SD0: {name} Echo "_[43m _[40m" noline copy CD0:d{source}xx/{name} SD0: all quiet >nil: wait 1 Echo "_[43m _[40m" noline TSGUI read SD0: Data:FredFish/d0{source}xx/{name}.adz gzip >nil: echo "_[43m _[40m Done." Edit: oops, forgot to say there is an ESC character before the '[' in the echo lines... |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AmigaDos | Hockmiester | New to Emulation or Amiga scene | 3 | 02 April 2013 08:01 |
AmigaDOS question | brolly | support.Other | 9 | 23 August 2012 02:12 |
AmigaDos Guide? | spookt | New to Emulation or Amiga scene | 2 | 15 December 2009 14:44 |
AmigaDOS scripts | lloyd | Coders. General | 2 | 22 November 2004 19:47 |
AmigaDOS | Swordlord | New to Emulation or Amiga scene | 28 | 05 March 2004 23:31 |
|
|