Just need a spot of guidance:
I want to delete all of the files in the sub folders of a folder then delete all of those sub folders.
Main folder TEST
Sub folders are employee names Joe Bloggs, Eddie Punchclock, Sally Housecoat etc. The relevant files are house in these sub folders.
This doesn't work as there are no files in the Test folder, they are all in the sub folders.
I can't specify the sub folders as the names of the sub folders are generated from a central employee database and may/will change.
Is there a way to wildcard the subfolders or am I going about this the wrong way?
thanks people
I want to delete all of the files in the sub folders of a folder then delete all of those sub folders.
Main folder TEST
Sub folders are employee names Joe Bloggs, Eddie Punchclock, Sally Housecoat etc. The relevant files are house in these sub folders.
Code:
Kill "H:\Test\*.*"
RmDir "H:\Test\"
This doesn't work as there are no files in the Test folder, they are all in the sub folders.
I can't specify the sub folders as the names of the sub folders are generated from a central employee database and may/will change.
Is there a way to wildcard the subfolders or am I going about this the wrong way?
thanks people