DeleteFile

Top  Previous  Next

 

DeleteFile

 

Syntax

DeleteFile([in] FilePath);

 

Description

To delete a file.

 

Parameters

       FilePath

               The file path to be deleted.

 

Return

       1 = success

       0 = failed

       -1 = FSCommands cannot be found

 

Example

 

FSCommand("DeleteFile", "C:\\Test.dat");

 

This will delete a file c:\test.dat

 

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