File_FindFile
Description
Section titled “Description”Find the paths containing the specified file
Syntax
Section titled “Syntax”File_FindFile(sFileName, sStartDirectory, bIncludeSubDirectories) As Boolean
Parameter
Section titled “Parameter”sFileName (String)
Section titled “sFileName (String)”Filename
sStartDirectory (String)
Section titled “sStartDirectory (String)”Directory to start search within
bIncludeSubDirectories (Boolean)
Section titled “bIncludeSubDirectories (Boolean)”Set to TRUE if sub folders should be included in the search
Return value
Section titled “Return value”Result will be stored in gaValue
Example
Section titled “Example”If bStatus Then bStatus = File_FindFile("CapaInstaller.txt", "C:\", True)If bStatus Then For index = LBound(gaValue) to UBound(gaValue) bStatus = Job_WriteLog("Custom", "The file was found in folder: " & gaValue(index), bStatus, True) NextEnd IfRelated functions
Section titled “Related functions”File_CreateEmptyFile File_CreateDirectory File_DelTree File_DelFile File_ExistDir Constants Package Property Variables