Previous - sysFileCopy Section Home - File System Next - sysFileDelete


sysFileMove ( )

Moves an existing file or directory, including its children.

Usage:

sysFileMove (object me, string filePathSource, string filePathTarget )

Parameters:

filePathSource (string) - a string specifying the file path to an existing file

filePathTarget (string) - a string specifying the file path of the new file

Returns:

(integer) - The success code

Example:

xtRose = xtra("Rosetta").new( )
nSuccess = xtRose.sysFileMove( "c:\temp\myFile1.txt", "c:\program files\test.txt" )

Notes:

This function can move or rename files and directories ( including its children ) to the same directory or to different directories. This function does not work if the directory is moved to a different volume.


Previous - sysFileCopy Section Home - File System Next - sysFileDelete