Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Find the paths containing the specified file

 


Syntax

File_FindFile(sFileName, sStartDirectory, bIncludeSubDirectories) As Boolean 


Parameter

sFileName (String)

...

Result will be stored in gaValue 


Example

Code Block
languagevb
themeEclipselanguagevb
titleVBScript
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 


Related functions

File_CreateEmptyFile File_CreateDirectory File_DelTree File_DelFile File_ExistDir