logo
Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
bart  
#1 Posted : Tuesday, May 31, 2011 11:18:14 AM(UTC)
bart

Rank: Administration

Reputation:

Groups: Administration
Joined: 10/8/2008(UTC)
Posts: 190
Man

Was thanked: 1 time(s) in 1 post(s)
If your harddisk on the server is almost full and it is because of to many IIS Logfiles It's easy to delete all old logfiles at once using this line in cmd:
Code:
forfiles /P D:\Logfiles /M *.log /D -30 /C "cmd /c del @file" /s

Make sure the path for your logfile is correct.
-30 means remove all logfiles older then 30 days.

Hope this will help some of you.

Wanna join the discussion?! Login to your Sienn Forum forum account. New Registrations are disabled.

bart  
#2 Posted : Thursday, December 13, 2012 10:04:48 AM(UTC)
bart

Rank: Administration

Reputation:

Groups: Administration
Joined: 10/8/2008(UTC)
Posts: 190
Man

Was thanked: 1 time(s) in 1 post(s)
Adding this to run once a day by you taskschedular will take care of old incorrect mails

Code:
forfiles /P C:\inetpub\mailroot\Badmail /M * /D -30 /C "cmd /c del @file" /s
forfiles /P C:\inetpub\mailroot\Drop /M * /D -30 /C "cmd /c del @file" /s


This only applies if you are using local smtp.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.