Page 1 of 1

How to limit the depth of a folder search

Posted: Fri Oct 29, 2010 7:40 am
by ctusch
Hello,

I want to search for a specific folder on all local hard disks but only up to a maximum hierarchy depth of 2 or 3. How can I do this in InstallAware script?

Thanks for any hints!

Re: How to limit the depth of a folder search

Posted: Fri Oct 29, 2010 1:16 pm
by mills
Find All Files will be the closest, however you cannot limit folder depth.

Do you know of a way this can be done without InstallAware? If you can search in this manner from command line, you may be able to use Run Program or Run Program As. You may need to write your own DLL to provide this functionality and use Call DLL Function.