Product SiteDocumentation Site

8.21. SysFileCopy


>>-SysFileCopy(source, target)---------------------------------><

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.
target
The path/name of the target location where the file is to be copied.
Return codes:
0
File copied successfully.
Other
A Windows System Error code (Section 8.1, “A Note on Error Codes”).

Example 8.7. RexxUtil - SysFilecopy

/* Code */
call SysFileCopy "c:\temp\myfile.txt", "d:\myfolder\myCopy.txt"