omron — FileDelete

Appendix: Built-in Scripting Language Syntax FileCopy( strSourceFile , strTargetFile { | , optNumTimeOut } ) strSourceFile The file path and name the file(s) to be copied. Tip: This function supports wildcards ( * and ? ). strTargetFile optNumTimeOut The file path where the file(s) are to be copied. Numerical tag containing an integer to set the timeout time for the operation. If you use the optNumTimeOut parameter, the function returns the value −1 after the specified timeout time and the scan continues. Though the function returns a −1, it does not cancel the copying procedure. Instead, it creates an internal process to finish the copying procedure. Returned value Notes Caution:

This function executes synchronously, which means that the project pauses while it waits for the function to return. As such, if the function is called to copy files from or to another volume across a slow network, then the project could be paused for long time. Examples FileDelete Deletes the specified file. Syntax FileDelete( strFile ) strFile The file path and name of the file to delete. Returned value Page 524 InduSoft Web Studio −1 Timeout time expired. 0 Failed to copy file(s). 1 File(s) copied successfully.

Tag Name Expression Tag FileCopy( "C:\Studio\Project\HST\*.hst", "C:\Temp\Hst\", 1000 ) Tag FileCopy( "C:\Studio\Project opert.txt", "C:\Temp \Tuesday Report.txt", 500 ) _ Function Group Execution Windows Embedded Thin Client FileDelete File Synchronous Supported Supported Supported 0 Failed to delete file Real Returns the size of the file deleted