DeleteOlderFiles

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

Function Group Execution Windows Embedded Thin Client Mobile Access
DeleteOlderFiles File Synchronous Supported Supported Supported Not 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:StudioProjectHST”, “*.hst”, “04/12/2002″ )

DeleteOlderFiles