Comperio
16th April 2005 00:20 UTC
FolderSeek option?
I'm looking for a function, plugin, etc. that has the ability to search for FOLDERS instead of files.
I was hoping to find something that would work similiar to the FileSeek function built-in to NSIS. I've not been able to find anything like this. Any ideas?
:confused:
Comperio
16th April 2005 00:31 UTC
Perhaps some more background:
I want to be able to start with a base folder $X and be able to get a list of all subfolders within. But I only need to go down one level ($X\folder1, $X\folder2, etc.)
The only problem is that I'm not going to know the exact name of the folders.
Anders
16th April 2005 03:18 UTC
FindFirst/FindNext + IfFileExists DIRECTORY\*.* to check if its a dir
Instructor
16th April 2005 05:44 UTC
Name "Output"
OutFile "Output.exe"
!include "FileFunc.nsh"
!insertmacro Locate
Section
${Locate} "C:\a" "/L=D /G=0" "LocateCallback"
; /G=1 with subfolders
IfErrors 0 +2
MessageBox MB_OK "Error"
SectionEnd
Function LocateCallback
MessageBox MB_YESNO '$R9$\n$\nFind next?' IDYES +2
StrCpy $0 StopLocate
Push $0
FunctionEnd
Script used header
Comperio
16th April 2005 06:48 UTC
Thanks both for the help! I'm looking forward to trying these!:up: