GetFileNames

Description

Calling GetFileNames returns the file names 

Syntax

Function GetFileNames(filter, options)

filter (input) - a string representing full pathname of the folder with the wild card based filter

options (input) - an optional string with hints which control how the list of files to be created and would it be sorted.

Could content the following sub-string:

Return value

Array of file names (or full pathnames if the 'sub' parameter was set)

Example

    VBScript:

    dim ff, i

    ff = trg.file.GetFileNames( "C:\test\" & "*.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