tumblr tracker

FindFiles

Library Reference ›› Folder ››
Parent Previous Next

Folder.FindFiles


Namespace: Folder


Searches for files in a folder that match certain criteria.


retval = Folder.FindFiles(Path, QueryString)


Parameters:

- Path; string constant or variable containing the folder path to search in

- QueryString; string constant or variable containing a part of a file name or extension; possible uses of * and ? wild-cards


Returns:

array of strings; files that satisfied the criteria in QueryString; array value.


Example


$Files = Folder.FindFiles("C:\TEMP", "AGP.?a*");

ForEach ($File in $Files)
{
   MessageBox.ShowInfo($File);
}