Rexx - chdir() 方法
此方法更改系统上当前工作目录的值。
语法
chrdir(newdir)
参数
newdir − 新目录应成为当前工作目录。
返回值
如果更改成功,则返回 0。
示例
/* 主程序 */
options arexx_bifs
say chdir('\rexxxml100')
say directory()
当我们运行上面的程序时,我们将得到以下结果。
输出
0 D:\rexxxml100
此方法更改系统上当前工作目录的值。
chrdir(newdir)
newdir − 新目录应成为当前工作目录。
如果更改成功,则返回 0。
/* 主程序 */
options arexx_bifs
say chdir('\rexxxml100')
say directory()
当我们运行上面的程序时,我们将得到以下结果。
0 D:\rexxxml100
