Rexx - Reginald


Advertisements


Reginald is another Rexx interpreter which was developed by Jeff Glantt and has some customizations on how Rexx programs can be run. In this section, we will see how to get Reginald setup and run a few Rexx programs in it.

Environment Setup

The first step is the environment setup which is to download the Reginald files. This can be done from the following website link − https://www.manmrk.net/tutorials/rexx/Reginald/win32/rxusrw32.htm

Reginald

Once the download is complete and you launch the installer, the next screen will allow you to choose the install location.

Click the Install button to proceed.

Install Reginald

Once complete, we can now start to run one sample program in the Reginald interpreter. Create a simple program as shown below.

/* Main program */ 
say 'Hello' 

Then run the following command −

RxLaunch.exe main.rexx 

You will then get the following output. This program will now be running in the Reginald interpreter.

Reginald Interpreter

Other Functions Available

Apart from the normal Rexx commands, Reginald had some specific commands that are tailor-made for the Windows operating system. DriveMap is one such command −

DriveMap

This function gives information on the drive.

Syntax

Drivemap(,options) 

Parameters

Options − These are a list of keywords which can be used to get various information on the drives of the local computer.

Return Value

A string value which has information on the drive.

Example

/* Main program */ 
say 'Drives on system : ' DriveMap(,'FIXED') 

If the above program is run, you will get the following output. This output depends from system to system.

List of disk drives :  C:\ D:\ 


Advertisements
E-Books Store