06 September 2007, 18:05 | #1 |
Zone Friend
Join Date: Apr 2005
Location: London
Posts: 1,176
|
Amigaguide woes
I'm generating an amigaguide document with a button that contains a system command.The problem is the system command may be operating on a file that contains a space. The button looks like this:
@{"Open this file" system "more ram:bad file name.txt"} That doesn’t work because of the spaces in the filename. I want to wrap extra quotes around the path but I cant work out what the escape character is for quotes in this situation. Any ideas? Thanks PS. This greater goal is to automatically generate an amigaguide document with buttons that run all the whdload games found on the system |
17 September 2007, 09:59 | #2 |
CON: artist
Join Date: Feb 2006
Location: Poland
Age: 43
Posts: 1,250
|
Try this (asterisk):
@{"Open this file" system "more *"ram:bad file name.txt*""} |
17 September 2007, 12:21 | #3 |
Zone Friend
Join Date: Apr 2005
Location: London
Posts: 1,176
|
Doesn't work, unfortunately, but I found a workaround - make sure I don't have any spaces in my filenames!
|
19 October 2007, 09:44 | #4 |
Registered User
Join Date: Jul 2005
Location: Southampton
Age: 43
Posts: 112
|
On other os's you use a single quote for the file name eg "'Bad File Name'"
|
19 October 2007, 11:08 | #5 |
Registered User
|
\
A backslash is the escape character. A backslash in front of the @ sign is used to escape it. The backslash has no effect as an escape character inside commands such as @ONOPEN or @{".." LINK ..}; in cases like these it is treated as a regular character. Please note that Amigaguide V35 does not treat the backslash character as an escape character. Found this in the 3.9NDK Last edited by smoorke; 19 October 2007 at 11:36. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Amigaguide to PDF | Josh | request.Apps | 28 | 18 August 2011 18:51 |
AmigaGuide: Can I launch a WHDLoad game from it? | Zetr0 | support.Other | 51 | 18 January 2011 08:17 |
hwref in amigaguide | yoki | Coders. General | 2 | 15 July 2009 13:45 |
looking for Amigaguide.library v44.5 patch | voxel | request.Apps | 5 | 03 October 2006 20:44 |
AmigaGuide | Iron Butterfly | request.Apps | 7 | 17 July 2003 09:23 |
|
|