Again.. yea that IS a cut-n-dry way to nuke your c:\temp directory.

BUT, it still doesn't solve the problem for the directory I want. I wanted to use the following script below, but the syntax is wrong. Maybe someone can debug my stupidness.

; delete temp files
$directory = "C:\docume~1\%USERPROFILE%\locals~1\Temp"
shell "%comspec% /c DEL C:\temp\*.* /S /Q"
shell "%comspec% /c DEL C:\winnt\temp\*.* /S /Q"
shell "%comspec% /c DEL C:\winnt\*.tmp /S /Q"
shell '%comspec% /c DEL /s /q "$directory"'

***
I guess it doesn't like the "userprofile" thing, but I don't know how to get kix to recognize it.

[ 12. May 2003, 20:04: Message edited by: search66 ]
_________________________
God bless Opera. God bless netjak.