Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting 800,000 bad mail files

Status
Not open for further replies.

jlong07

Technical User
Nov 8, 2002
56
US
Hello,

I have Win 2003 Server running Exchange Server 2003. I have recently run into a major problem with server slow down. I am trying to troubleshoot this and I found that the badmail folder for the exchange server "c:\program files\exchsrvr\mailroot\vsi\badmail" has around 800,000 files in it. I have tried deleting these files, but the server just seems to laugh at me when I try. How can I purge this directory without the operating system having to delete each file individually.
 
Have you tried deleting them from the command prompt?
 
I have tried it with the commands I know. Unless you know a different command than del *.* or deltree then that won't work. Both of those commands delete each file individually.
 
I just set up a bat file to handle this once per day.

del "f:\Exchange\Mailroot\vsi 1\badmail\*.*" /Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top