CompuServe Thread

#CD within ARexx?

6 messages in this thread
#35578From: SyndesisJun 25, 1993 11:20 AM
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.
#35585From: Alex GianJun 25, 1993 3:08 PM
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
#35600From: SyndesisJun 26, 1993 8:24 AM
Thanks!
#35604From: Greg GivlerJun 26, 1993 3:15 PM
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'
#35629From: Brian BartlettJun 28, 1993 12:51 AM
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
#35697From: Greg GivlerJul 3, 1993 8:47 AM
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'