The above solutions provide you with a list of file paths in the main folder and all sub-folders. The For Each Action will allow you to process each file in that list. With that approach you do not need to worry about the sub-folders -- they are included in the path of each file.
If this doesn't clear things up for you, then perhaps you can provide us with more details of exactly what you want to do.
Looking at the original post, would you mind posting your macro for that solution?
Total noob here, having a similar problem i need to fix, and not sure how to implement these shell scripts.