Skip to content
⌘ NSIS Forum Archive

Locate only in some directories

3 posts

aemik#

Locate only in some directories

Hello,

I have a directorie with many folders and files.
I use the Locatemacro to search for files.
Now i want search only in 3 of the directories.

Whats the best way to do it???
Red Wine#
By reading the documentation I suppose...
e.g.
${Locate} "$PROGRAMFILES" "/L=F /M=WinAmp.exe /G=1" "CallBackFunc"
aemik#
I have read the documentation.
but I have found no way to search only in some directories.

Now I try this:

${Locate} "$DIR\Release" "/L=F /M=$FILENAME" "Stopsearch"
${Locate} "$DIR\References" "/L=F /M=$FILENAME" "Stopsearch"
${Locate} "$DIR\Directories" "/L=F /M=$FILENAME" "Stopsearch" 
but I dont know if it is a good idea...