Extensions Reference
Extensions Reference > fsFilesystem
fsMove
bool fsMove(string Source, string Dest);
Moves the specified file to the destination
The FSMOVE function moves the specified source file to the destination file. This function can also be used to rename files within the same folder.
The destination file must not already exist. You may check for this with the exFilesystem::fsFileExists function.
Parameters
Source
The path and filename of the source file. Remember to escape backslashes in any paths.
Dest
The path and filename of the destination file. Remember to escape backslashes in any paths.
Return Value
True if the move succeeded, otherwise False.
Example Code
// Move (rename) sample.txt to copy.txt
fsMove("C:\\sample.txt", "C:\\copy.txt");