Those silly typos!

Quote:

Quote:

that sample code did exactly what I needed...thanks! : Cu



Would believe that the sample code came with a typo so that folder with the name test2 would be deleted as well, corrected below

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.name = "test2"

else
$folder.delete
endif
next



Rgds
Jan V.