This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- FindAllFiles function checks subdirectories - bad thing
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 02, 2011
09:37 AM
FindAllFiles function checks subdirectories - bad thing
I need to use FindAllFiles in my InstallScript project to add executables to the Windows Start Programs Menu since the executables are not known at design time because they are in a component with a dynamic link to a source folder.
The problem is that I ONLY want TARGETDIR to be searched for the files, but it searches all subfolders under TARGETDIR. What is even MORE bizarre is that FindAllFiles doesn't even find the executables in TARGETDIR. It only finds the ones in the subfolders.
HELP!!!
The problem is that I ONLY want TARGETDIR to be searched for the files, but it searches all subfolders under TARGETDIR. What is even MORE bizarre is that FindAllFiles doesn't even find the executables in TARGETDIR. It only finds the ones in the subfolders.
HELP!!!
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 02, 2011
11:32 AM
The FindAllFiles function is documented as searching all subdirectories in the path provided to the function. To search for files only in a specific path and not in subdirectories, use the FindFile function.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 24, 2012
01:20 PM
I think that the OP's request is to get all files in one directory, not including subdirectories? FindAllFiles needs to be put in a loop with some folder checking to make this work. It's not an ideal option, but it does work.
This thread covers the issue:
How to get all files in one directory, not including subdirectories?
This thread covers the issue:
How to get all files in one directory, not including subdirectories?