09 October 2010, 23:19 | #21 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
|
I think you mean '.key name' then use '<name>' to access it. 'name' is obviously just a placeholder Use the comma to have more than one param.
Oh and place that in the first line of your script. |
09 October 2010, 23:20 | #22 |
Junior Member
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
|
Actually, if it helps explain things easier, I want the "list" command to be able to create a script that goes something like this:
Code:
WWARP T:Temp.wwp C Import="(game name).ipf" Force WWARP T:Temp.wwp G * "(game name).adf" delete T:Temp.wwp EDIT: Eh? What you referring to exactly, CD? |
09 October 2010, 23:22 | #23 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
|
Your question about the equivalent of the %1 parameter in AmigaOS
|
09 October 2010, 23:33 | #24 |
Junior Member
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
|
Ah okay. You might have to give me an example of how it works since Google is still being crap with coming up with good answers.
|
09 October 2010, 23:36 | #25 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
|
Code:
.key Name echo <Name> |
10 October 2010, 00:02 | #26 |
Junior Member
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
|
Thanks. But looking at it I still don't see how this will solve my situation. I take it the Execute command won't recognise anything entered after the name of the script? Or can anything referenced in .key be carried over to as many recursive scripts as possible?
|
10 October 2010, 00:16 | #27 | |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
|
Quote:
Btw : Not sure if AmigaOS supports recursive scripts. |
|
10 October 2010, 00:18 | #28 |
Junior Member
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
|
Actually, Google finally helped me with something!
Turns out to make List/LFormat output a script with more than one command you need to use "*n" to refer to a line feed. But alas, I am still stuck because it is unable to understand the * in the second WWarp command, and that symbol is required by the program. So it looks as if I may have to implement the long-winded two-script way after all. Unless of course there is a way around the * confusion? Still, I'd like to know how exactly the ".key" can be called at a command prompt in the same manner as a %1 if I'm to make references inside the script. |
10 October 2010, 00:22 | #29 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
|
Meh.
Make a script with contents of my example 5 posts above. Name it 'test'. Call it with 'execute test MethodGit'. See what it does. |
10 October 2010, 00:44 | #30 |
The 1 who ribbits
|
time to get a book on amiga dos hehehehehhe
|
10 October 2010, 01:12 | #31 |
Zone Friend
Join Date: Apr 2005
Location: London
Posts: 1,176
|
Try amigados for beginners on aminet (adosbegin.lha) it explains everything you ask and more very well.
|
10 October 2010, 01:17 | #32 |
Junior Member
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
|
|
10 October 2010, 01:24 | #33 |
Junior Member
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
|
Gash....... think you may be right on that one.
Here's my current script: Code:
list >tempscript files p=#?.ipf lformat="execute IPF2ADF *"%n*"" Code:
execute IPF2ADF "Secret of Monkey Island, The (Europe) (v1.2) (Disk 1).ipf" execute IPF2ADF "Pushover (Europe) (En,Fr,De,Es) (Disk 2).ipf" execute IPF2ADF "Pushover (Europe) (En,Fr,De,Es) (Disk 1).ipf" execute IPF2ADF "Pushover (Europe) (En,Fr,De,Es ) (Alt) (Disk 2).ipf" execute IPF2ADF "Pushover (Europe) (En,Fr,De,Es ) (Alt) (Disk 1).ipf" That IPF2ADF script in turn executes this: Code:
.key <name> WWarp T:Temp.wwp C Import="<name>" Force WWarp T:Temp.wwp G * "<name>.adf" Delete T:Temp.wwp Code:
creating new wwarp file "T:Temp.wwp" from file "" using trackwarp.library cannot open file: object is not of required type T:Temp.wwp: object not found (dos.library/open file to read) disk image '.adf' has been written, size=0 No file to delete |
10 October 2010, 01:24 | #34 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
|
Fingers crossed you got the idea now
Edit : Not '.key <name>', just '.key name'... |
10 October 2010, 01:27 | #35 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
|
10 October 2010, 01:32 | #36 | |
Junior Member
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
|
Quote:
I'm starting to worry that this .key thingy will only acknowledge output referred to in the initial execute command, and not any inside scripts. Amirite? >.< |
|
10 October 2010, 01:34 | #37 | |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
|
Clear enough now?
Quote:
Last edited by TCD; 10 October 2010 at 01:41. |
|
10 October 2010, 01:39 | #38 |
The 1 who ribbits
|
thats why there is a sort cmd, guess wot it sorts a txt file
http://www.bombjack.org/commodore/amiga-books.htm Compute's AmigaDOS Reference Guide 4th Edition had this for years |
10 October 2010, 01:43 | #39 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
If you're using a PC directory, then the names are (I would guess) listed in the order in which they appear in the PC directory TOC.
|
10 October 2010, 01:51 | #40 | |
Junior Member
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
|
I saw it the first time!
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Final Command | runamuck2 | support.Games | 7 | 13 September 2019 16:17 |
What is the WB command that..... | MethodGit | request.Other | 4 | 08 October 2010 04:21 |
Install command | mai | support.Other | 9 | 09 December 2009 15:33 |
New Carrier Command | -=ARA=- | Retrogaming General Discussion | 12 | 18 September 2009 10:37 |
help with delete command | silkworm | New to Emulation or Amiga scene | 2 | 09 December 2004 19:14 |
|
|