18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

File functions<br />

These functions are used to read from, write to, print, move, and delete external files.<br />

DeleteOlderFiles<br />

Deletes files that are older than a date matching the configured mask from the configured path.<br />

Function Group Execution Windows Embedded Thin Client<br />

DeleteOlderFilesFile Synchronous Supported Supported Supported<br />

Syntax<br />

DeleteOlderFiles( strPath, strMask, strDate )<br />

strPath<br />

strMask<br />

strDate<br />

The path to the files that will be deleted.<br />

The mask of the files to be deleted.<br />

The cut-off date. Any files older than this date will be deleted.<br />

Note: This parameter must be configured using the date format specified for<br />

the project (such as MDY or DMY ) with the appropriate separator ( /, :, ., and so<br />

forth.).<br />

Returned value<br />

Returns the number of files deleted.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag DeleteOlderFiles( "C:\Studio\Project\HST\", "*.hst", "04/12/2002" )<br />

DirCreate<br />

Creates the specified directory.<br />

Function Group Execution Windows Embedded Thin Client<br />

DirCreate File Synchronous Supported Supported Executed on Server<br />

Syntax<br />

DirCreate( strDirectory, optBooFullPath )<br />

strDirectory<br />

The name and file path of the directory to create.<br />

optBooEmptyOnly<br />

Page 626<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!