SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎target.file‎ > ‎

GetFileNames


Platform Objects


Description

Calling GetFileNames returns the file names 


Syntax


Function GetFileNames(filter, sort)

filter (input) - a string representing full pathname of the folder with the wild card based filter
sort (input) - a string setting the output array's sorting by the files' date modified ("date descending" or "date desc").  Default: "date ascending".   


Return value


Array with the file names


Sample

    VBScript:

    dim ff, i
    ff = trg.file.GetFileNames( <folder name> & "*.ppt*", "date desc" )
    for i = 0 to ubound(ff)
        msgbox i & ": " & ff(i)
    next

 

See also


Platform Objects and Methods
target.file.GetExtensionByMIME
target.file.GetMIME
target.file