Product SiteDocumentation Site

8.24. SysFileMove (Windows only)


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

Moves a file from one location to another. Wildcard file specifications are not allowed.
Parameter:
source
The path/name of the file to be moved.
target
The path of the target location where the file is to be moved. The target must contain a path component.
Return codes:
0
File copied successfully.
Other
On failure, a Windows System Error code (Section 8.1, “A Note on Error Codes”) is returned.

Example 8.10. RexxUtil - SysFilemove

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