Phantom Documentation

[Help Home] [Phantom Home]
FindFile

string FindFile(string,string)

Return Type: string
Parameters: string sDir, string sFile

Description:
Finds a file in a directory indicated by sDir, including sub-directories. If the sName parameter contains a wild card (*), the function will find the closest matching file. FindFile returns the full path to the file that matches the sName parameter. If no file is found matching the search conditions, an empty string is returned.

Example Code
string sFile = "auto*";
sFile = FindFile("c:\\", sFile);
PrintMessage(sFile);


 


Copyright 2000-2011 Phantom Automated Solutions