I am using the DEL command in a script like this: Code:
 IF @UserID = Techwall OR Wordp OR Homework
DEL 'c:\tempdrive\*' /h /s
ENDIF


The C:\tempdrive directory needs to be emptied of all files and folders upon logoff. The way I'm using DEL in the script above only deletes the files from the root directory and sub directories.

Is there a way to also delete the folders ?

Thanks again!
_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5