Product Site

8.16. SysFileCopy

Copies a file from one location to another. Wildcard file specifications are not allowed.

Parameter:
source

The path/name of the file to be copied. The source and the target path does not support wildcard characters. On Unix-like systems, if the first character is a ~ (tilde) character optionally followed by a username, it is replaced by the current or specified user's home directory.
target

The path/name of the target location where the file is to be copied.

Return codes:
0

File copied successfully.
Other
Example 8.7. RexxUtil — SysFileCopy
call SysFileCopy "c:\temp\myfile.txt", "d:\myfolder\myCopy.txt"
call SysFileCopy "/tmp/myfile.txt", "~/myCopy.txt"