@Brax: it can be tricky to delete all files of all the sub folder of a directory, you would need recursion on $findfile to do it.

Here is a nice COM object handling this for you:

Code:
alias delete_fullfolder {
.comopen a Scripting.FileSystemObject
if ($com(a,GetFolder,1,bstr*,$1-,dispatch* b)) && (!$comerr) noop $com(b,Delete,1)
if ($com(a)) .comclose a
if ($com(b)) .comclose b
}
/delete_fullfolder <path> -- do not use quote.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel