ARexx Current Dir
Ray,
If you are CD'd to RAM: in ARexx and open a file using OPEN() it will accept a
partial path, and open the correct file. It's only when executing commands via
address command xxx that the CD isn't inherited. Within the ARexx task
itself you can change the current directory using pragma(), and the built-in
file I/O functions will work as expected.
Note that the path name returned by pragma uses the volume name rather than the
device name. This is becasue AmigaDOS gives volumes priority over devices —
if you had a volume named DF1 mounted on DF0:, doing a cd df1: would put you on
the volume, not the drive. Thus it would be chancey for me to fill in the RAM:
device name instead of going after the volume name.
Have you tried using VD0: instead of RAM:? It works fine, and you can do an
ASSIGN RAM: VD0: so you don't have to change any script files.
-Bill