how to search a file
hi,
how to search for a specified file ? and then add the filepath to $instdir ?
thanks 4 help
Archive: how to search a file
how to search a file
hi,
how to search for a specified file ? and then add the filepath to $instdir ?
thanks 4 help
Look in the Helpfile
4.9.3.11 SearchPath
user_var(output) filename
Assign to the user variable $x, the full path of the file named by the second parameter. The error flag will be set and $x will be empty if the file cannot be found. Uses SearchPath() to search the system paths for the file.
a example:
if you search for notepad, you need this line:
SearchPath $1 notepad.exe
after this $1 will contain the path of notepad
I hope this helps
greetz Dave
So this basically performs the Windows search api?
Does that mean that the search functions on the archive are practically now redundant?
-Stu
SearchPath searches through a very specific list of folders. The functions from the Archive allow you to choose which folders to search.
Specifically:
1. $EXEDIR
2. $SYSDIR
3. $WINDIR
Else use Archive functions.
Actually, it's:
Ah right thanks. I won't use that then :D
-Stu