Function:
MoveFile(lpExistingFileName, lpNewFileName)

 

Description:
Moves or renames a file or directory (including all its subdirectories).

 

Parameters:
lpExistingFileName: The source file or directory.
lpNewFileName: The new name of a file or directory. The new name must not already exist. A new file may be on a different file system or drive. A new directory must be on the same drive.

 

Returns:
Returns 1 if successful, or 0 if an error occurred.

 

Example:
Click on the calc icon to view a sample of the MoveFile function.