OS-COPY
复制文件
COPY 源文件目标文件
将 c:\temp\source-file.txt 复制到 c:\temp\target-file.txt。你需要检查 OS-ERROR 是否成功。
OS-COPY VALUE("c:\temp\source-file.txt") VALUE("c:\temp\target-file.txt").
IF OS-ERROR <> 0 THEN DO:
MESSAGE "An error occured" VIEW-AS ALERT-BOX ERROR.
END.