omron — DirCreate

Appendix: Built-in Scripting Language File functions These functions are used to read from, write to, print, move, and delete external files. DeleteOlderFiles Deletes files that are older than a date matching the configured mask from the configured path. Syntax DeleteOlderFiles( strPath , strMask , strDate ) strPath The path to the files that will be deleted. strMask The mask of the files to be deleted. strDate The cut-off date. Any files older than this date will be deleted. Note: This parameter must be configured using the date format specified for the project (such as MDY or DMY ) with the appropriate separator ( / , : , . , and so forth.).

Returned value Returns the number of files deleted. Examples DirCreate Creates the specified directory. Syntax DirCreate( strDirectory , optBooFullPath ) strDirectory The name and file path of the directory to create. optBooEmptyOnly Optional flag. If omitted or if this parameter has the value 0, the directory is created only if all previous directories exist. If this parameter has the value different from 0, the full path specified in the strDirectory parameter is created.

Returned value InduSoft Web Studio Page 521 Function Group Execution Windows Embedded Thin Client DeleteOlderFi leFsile Synchronous Supported Supported Supported Tag Name Expression Tag DeleteOlderFiles( "C:\Studio\Project\HST\", "*.hst", "04/12/2002" ) Function Group Execution Windows Embedded Thin Client DirCreate File Synchronous Supported Supported Executed on Server -1 Invalid parameters 0 Failed to create the directory (e.g., Drive does not exist.)