Hi @MatteoNatalicchio,
Thanks for reaching out through LIVEcommunity!
I'm going to break your questions apart and answer them for clarity.
A ) What if i want to match all folders under a certain path?
Does (c:\temp\*) match c:\temp\folder1\file.xml ? (i don't think so)
I don't necessarily know how many folders there are, I need to be able to match any number of subfolders
Simply put, yes. C:\temp\* covers all files and folder in the directory. Doesn't matter how many other folders are contained within, this encompasses them all.
B ) Or what if I want to match any file having a certain extension anywhere in the file system?
(all file ending with .xml as an example)
In this example you could do something like C:\Temp\*.xml. The addition of the '.xml' means it will only search for .xml files in the Temp directory. You could something like C:\*\*.xml. Where the first '*' could represent any number of nested folders and target files in those folders ending with the ".xml" extension. I strongly recommended testing in your own environment to confirm this works for your usecase.
I hope you find this information helpful.
... View more