GetNewestFile


 

GetNewestFile>filespec,result

 

Returns the newest file matching the given filespec.

 

See also: GetOldestFile

 

Example:

 

//gets the newest file in the My Documents folder

GetNewestFile>%USERDOCUMENTS_DIR%\*.*,newFile

 

//gets the newest text file in c:\folder

GetNewestFile>c:\folder\*.txt,newFile