Rename a file on a remote computer.
Syntax:
Parameters:
- sExistingFileName – Name of existing file to rename on remote computer. Only the name is required, and the path is ignored if specified. The path of the file that indicates where the file is located on the remote server is indicated by the TargetPath property.
- sNewFileName – Name to change existing file to. Only the name is required, and the path is ignored if specified. The new file name is located on the remote server indicated by the TargetPath property.
Returns:
Returns 1 if the operation is successful; otherwise returns 0 if the operation fails.
Samples