Dirplus returns the COM object to the file system in question... so.

Code:

$folders = dirplus("c:\00", "/ad /s")

for each $folder in $folders
? $folder.name
? $folder.path

; dont delete the test or test 2 folder ?????
if $folder.name = "test" or $folder.anme = "test2"

else
$folder.delete
endif
next