Need help with the File Scripting Object.
Since Microsoft has decided to do away with the File Search Object, I need to re-write a couple of modules using the File Scripting Object. I have made a few attempts to no avail.
Here is what I need to accomplish:
Basically look in five folders to see if any files exist, if so, then Delete the files it finds.
The main folder for the five sub folders is C:\Data\P4DL\InvReports\
The five sub folders I need to loop thru looking for files that may exist and then delete (files only)are: