I have 3 scripts that I am combining into 1, now when I run it, I get a permission denied error at line #119. subfolder.Delete
If I run that section standalone its fine.
Here is the script.
I think it has something to do with 2 different sections using FSO.
Here is a folder structure that I am working with as a point of reference (several csv files in these):