Skip to content

File\_FindFile

Find the paths containing the specified file

File_FindFile(sFileName, sStartDirectory, bIncludeSubDirectories) As Boolean

sFileName (String)

Filename

sStartDirectory (String)

Directory to start search within

bIncludeSubDirectories (Boolean)

Set to TRUE if sub folders should be included in the search

Result will be stored in gaValue

VBScript

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)
Next
End If

Scripting Guidelines

File_CreateEmptyFile File_CreateDirectory File_DelTree File_DelFile File_ExistDir