I'm working on an app which in some cases creates subfolders below "App.Path" (got that part working fine) and in some cases I want to go through and delete all such subfolders (each subfolder is named with a specific pattern). The second part is where I'm stuck. I would like to use the FSO; I've used it a little bit and would like to use it more. I envision the pseudocode for this thing as something like the following:
Code:
'pseudocode:

For Each Subfolder In (App.Path)
    If Subfolder.Name Like "MyPattern" Then
        fso.DeleteFolder Subfolder.Name
    End If
Next
Can someone help and substitute the pseudocode with the proper VB syntax? I would be eternally grateful ...