Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Giving a path and a file mask, this function delete all files whose age in days is more than given age.

 

Syntax

 

n = FSO_DeleteByAge(FilePath, FileMask, nDays [, PutIntoTrash])

 

Returns

 

Number: number of files deleted.

 

Parameters

 

Name

Type

Optional

Meaning

FilePath

String

No

Directory path to search for

FileMask

String

No

File mask to search for. Wildcards * and ? are accepted

Examples:

"*.temp"

"*.log"

"he??.*"

"*data"

"*.*"

nDays

Numeric

No

Age in days.

PutIntoTrash

Numeric

Yes

If present, %TRUE value will instruct function to move deleted file into trash bin instead of physical remove the file.

 

Remarks

 

Function perform the following steps:

1.search inside FilePath for FileMask files

2.compute the age of the files found

3.if age of the file in days is greater than nDays parameter, file is deleted

 

Restrictions

 

ATTENTION:this function delete files!

 

See also

 

File Module,

 

Examples

 

 

 

 

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software