Rexx - chdir


Advertisements

This method changes the value of the current working directory on the system.

Syntax

chrdir(newdir)

Parameters

newdir − The new directory which should become the current working directory.

Return Value

Returns 0 if the change was successful.

Example

/* Main program */ 
options arexx_bifs 
say chdir('\rexxxml100') 
say directory() 

When we run the above program we will get the following result.

Output

0 
D:\rexxxml100 
rexx_regina.htm
Advertisements