MoveFile

Top  Previous  Next

 

MoveFile

 

Syntax

MoveFile([in] SourceFilePath, [in] TargetFilePath);

 

Description

To move/rename a file.

 

Parameters

       SourceFilePath

               The source file path.

       TargetFilePath

               The target file path.

 

Return

       1 = success

       0 = failed

       -1 = FSCommands cannot be found

 

Example

 

FSCommand("MoveFile", "C:\\Test.dat,C:\\Moved\\Test2.dat");

 

This will move file c:\test.dat into c:\moved\test2.dat

 

You can use an escape character ~ (tilda) to insert a comma into a file path.