InstallShield 2019 » InstallScript Language Reference
The FindFile function searches a directory for a specified file. InstallShield returns the first matching file in the parameter svResult.
Note • This function searches only the specified subdirectory. It does not search an entire disk or directory tree.
Syntax
FindFile ( szPath, szFileName, svResult );
Parameters
Parameter |
Description |
szPath |
Specifies the name of the directory to search. Subdirectories beneath this directory are not searched. Note • If the directory is enclosed in quotation marks, FindFile fails. To ensure that the folder name is not enclosed in quotation marks, call LongPathToQuote (szPath, FALSE) before calling FindFile. |
szFileName |
Specifies the name of the file to search for. Wild-card characters are allowed in this parameter. |
svResult |
Returns the name of the first file that matches szFileName. This parameter contains the unqualified file name; that is, the drive designation and path are not included. |
Return Values
Return Value |
Description |
0 |
Indicates that the function successfully found and returned the specified file. |
< 0 |
Indicates that the function was unable to find the file. |
See Also
InstallShield 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |