Originally Posted By: Richard H.
Gaaah! DEL *.* \:o

You must be the luckiest man alive, go buy a lottery ticket now!
....


LOL del *.* might not be the best option here

Putting in a small line that displays stuff on the console window will show you what will happen when you run the script with the actual delete command enabled but it does not delete anything yet.

 Code:
$sPrefix="Q:\Documents and Settings\"
$sSuffix="\documentum\viewed"

$sEntry=Dir($sPrefix+"*")
While Not @ERROR
	If Exist($sPrefix+$sEntry+$sSuffix)
		"Match found for user "+$sEntry+@CRLF
		; Here comes the delete, commented out.
		; Remove the ";" character from the line below to enable the delete code.
		;Del $sPrefix+$sEntry+$sSuffix+"/*.*"
		?"Pretending to delete files from: " + $sPrefix + $sEntry + $sSuffix
	EndIf
	$sEntry=Dir()
Loop
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.