I have a function you guys helped me with and I just realized I need to search sub directoris for a specific named file and run the function on the file in each of those sub directories.

So I need to search each subdirectory of %AppData%\Skype\, and no deeper, for the file Config.xml. And then run my fuction on that file.

I've looked for scripts for searching for files in sub directories and couldn't find anything. Any help putting this together would be great

Here is the function I'm calling with some variables (AppDataDirectory and SubDir) that would need to be looped in somehow?

Break On
$FILENAME = "@AppDataDirectory\Skype\@SubDir\Config.XML"
$XML = LoadXML($FILENAME)
WriteXMLValue($XML, "config/Lib/Chat/HistoryDays", 123)
SaveXML($XML, $FILENAME)
Exit 0