Quote:
Hi
I have a litte problem with "dirplus"
Code:
$folders = dirplus("c:\00", "/ad /s")
for each $folders in $folders
? $folders
if $folders= ("test") or $folders= ("test2")
???
else
del "$folders" /s /h
endif
next
no kidding. You have a "IF - ELSE - ENDIF" - statement but you forgot to define the action (where i put the "???"). Plus, from $folders you get back full paths, like "C:\xxx\yyy\test" not just "test", so either you check with
Code:
if instr ($folders,"test") or ....
or you split $folders with "\" as a delimiter.
"Del" doesen't work neither,... ah witto said that already.
Edited by therob (2006-10-04 11:48 AM)
_________________________
Eternity is a long time, especially towards the end. - W.Allan