Thanks so much to both Mart and Richard H. for assisting me. I never was much good at this scripting stuff. Makes my brain hurt.

I am an administrator on the server I need to run this on. I tried Marts and it works well but I am going to run this myself periodically say once a month, off hours, until they move to another server with more space and they fix thier app to purge these files on a daily basis through the application itself.

Anyway, I'm not sure I understand how to do the DEL in the script Richard? You have
 Quote:
; *** DO YOUR DELETE HERE ***
in the script but I am not sure what to put thier? As I said initially I need to go through everyones profile in thier Q:\Documents and Settings\userid\documentum\viewed folder but not everyone will have the Documentum\Viewed and if they dont the script should skip that user and move onto to the next.

What do I input in the script to make it delete everything out of the users documentum\viewed directory?

I tried DEL *.* so in other words I changed the script to read...

 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
		DEL *.*
	EndIf
	$sEntry=Dir()
Loop


The code appears to work (Loop) three times I get a 0 then another 0 then another 0 and finally on the first user profile the code errors out...the code gives me...

Match found for user asmith<unknown:CRLFScript error :expected expression.!

Thanks again for the assistance - please help.

Syn
_________________________
Bang that head that doesn't bang!!!