DeleteOlderFiles

Deletes files that are older than a date matching the configured mask from the configured path.

Function Group Execution Windows Embedded Thin Client
DeleteOlderFiles File Synchronous Supported Supported Supported

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

Tag Name Expression
Tag DeleteOlderFiles( "C:\Studio\Project\HST\", "*.hst", "04/12/2002" )