Discussion Locked

I need a script to delete log files

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have never written a script and have been tasked with writing one to delete log files. Here is the info I can supply for help. It is in a windows server environment. I would like to set it up as a scheduled task to run once a month. The script must look at log files in a folder on the server and delete any that are older than 3 months. My boss would prefer that it be a command line script, or it can also be a vb script, that is what I'm trying to teach myself. any help would be appreciated. Thanks.

7 replies

by patrick horn

What I am trying to delete are Sharepoint logs. They are getting out of hand and are starting to take over needed server space.

by patrick horn

Unfortunately, the whole point of the excercise is to understand and learn to write scripts. Thanks though.

This discussion is closed to new replies.