Product Site

8.19. SysFileMove

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. The filename 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 of the target location where the file is to be moved.

Return codes:
0

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