MorphOS Developer
Posts: 1073 from 2004/9/23
Quote:
tolkien wrote:
Its not the first time I have problems with using RAM Disk in paths. What I dont remember is if It was on Morphos or aos classic..sorry XD
Yeah. It happens when you launch applications or tools from inside an application.
Usually you sprintf() a path, which is used to execute the external tool. And the pattern looks like this: "C:Dir %s" while it should be "c:Dir \"%s\"".
The result is 'C:Dir RAM Disk:Hello' vs 'C:Dir "RAM Disk:Hello"'.
As you can see the first version has a stray "RAM", which is interpreted as the first argument. The C:Dir command would try to list "RAM" and "DISK:Hello", while the second example sees "RAM Disk:Hello" as one argument.