English Amiga Board Amiga Lore

Go Back   English Amiga Board > Main > Amiga scene

Thread Tools
Old 08 July 2003, 21:01   #1
Global Moderator

bippym's Avatar
Join Date: Nov 2001
Location: Nottingham, UK
Age: 41
Posts: 8,487
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?
bippym is offline  
AdSense AdSense  
Old 08 July 2003, 23:46   #2
Registered User
Severin's Avatar
Join Date: Dec 2002
Location: Gloucester / UK
Posts: 700
Send a message via ICQ to Severin
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:
del sd0:#? all force quiet >nil:
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...
Severin is offline  
AdSense AdSense  

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 23:15.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Page generated in 0.12102 seconds with 11 queries