Use Reginald interpreter in ooRexx

129 views Asked by At

I've fallen into ooRexx for some office improvement stuff and I need to move some files around in windows, and in my research I found the Reginald interpreter which is exactly what I need. Is it possible to call to it from, or load that functionality into an ooRexx program?

1

There are 1 answers

3
Robert Schreiber On

Writing code like

Method_1:
'some command'

is not the greatest way to do it. I always use the ADDRESS command, like this:

Method_2:
ADDRESS someenv 'some command'

to prevent accidentally sending something to the wrong environment. When you use Method_1 there is an implicit assumption that an ADDRESS was previously executed (or defaulted). In Method_2 its explicit. The difference is that if you later have to change the rexx code using multiple environments you might accidentally send a command to the wrong environment. Method_2 is safer.