ARexx Current Dir
Hi Ray,
The pragma('Directory',dirname) is indeed the function to use, but the RAM:
handler has a bug so that its top level gets reported as ":". This problem
(and many others) are fixed in 1.3, to the best of my knowledge.
When you run a command using the "address command …" instruction, the command
unfortunately doesn't inherit your current dir; it's a long-standing problem
with AmigaDOS's Execute() function. However, a simple workaround is available:
you can issue several commands at once by separating them with a 'newline'
character — '0A'x in REXX. Try the following sequence
address command 'cd df1:c'||'0A'x||'cd'
and it should report df1:c as the current directory. The pragma() function
will return the current directory path.
Hope this helps out, and let me know if you have other questions.
-Bill Hawes