I found the sollution i think.
I placed the line
ECHO y|del %temp%\*.*
directly in the autoexec.bat and on win9x and winNT its running.
only its not deleting the subdirectory's.

Nick