#CD within ARexx?
6 messages in this thread
Is there a way to 'cd' within an ARexx script? I want to change directory and
make it stick… some scripts would be so much easier to write that way.
Yes there is a really easy way, use the Pragma() function:
current_value = Pragma('DIRECTORY'|'PRIORITY',[newvalue])
IOW, Pragma('DIR','dhx:subdir') will do what you want. If you don't specify a
second argument the function returns the cd.
Note that the function returns the *old* value, even when it changes it.
I understand that Pragma() was going to be used to allow other system changes
too, but last I heard only cd and priority could be changed.
Alex
You use the pragma command. I don't have the manual in front of me, but I
have used that and it works just fine.
Greg
Greg Givler – CBMSER Sysop
"By the way, don't eat the figs", Lydia, 'I Claudius'
Greg,
ah, yes! I see someone else was smitten with 'I Claudius'. Did you
ever notice that in the intro to Masterpiece Theater they have a bowl of
figs? ;-).
Brian
I personally think that my little quote is one of the best lines in the
series. Every time I think of it I smile at the total evil involved. 🙂
Greg
Greg Givler – CBMSER Sysop
"By the way, don't eat the figs", Lydia, 'I Claudius'