Lyr to Group Lyr automation

Discussion created by kmaurelli on Mar 12, 2013
Latest reply on Mar 13, 2013 by kmaurelli
Hi All,

I have hundreds of .lyr files in "sets of two" within the same folder. Within each of these sets is a polygon layer of a district boundary and a points layer containing relevant locations within that boundary. The naming convention is AK01_District.lyr and AK01_Points.lyr, with each "set" having a unique first 4 characters followed by _District or _Points.

Is there a way automate the grouping of the sets into a group layer based on the layer names?

Thanks for the help!