PDA

View Full Version : Looping through folders


SpartanHokie
02-18-2005, 08:40 AM
Given a path, I want to loop through only the child folders of this path. I have tried a bunch of different combinations and I seem to keep getting every folder underneath the path (childrens folders and so forth). Is there a way to just loop through the folders in a path without recursing into the child folders? TIA

SpartanHokie

kinook
02-18-2005, 12:55 PM
Not built-in (the Process Files action's 'Process once for each folder containing matching files' option only applies when recursively processing subfolders [if it did process the immediate child folders with recursive unchecked, you could use it, and we'll see about supporting this in the future]).

Attached is a sample showing how to do this using script and a repeating build rule.