VBScript to delete IIS Log files

managing-log-file-storage-scheduling-step2

VBScript to delete IIS Log files Create a file using the text below. Save it somewhere with a .VBS extension. I used IISLogCleaner.vbs sLogFolder = “c:\inetpub\logs\LogFiles” iMaxAge = 14 ‘in days Set objFSO = CreateObject(“Scripting.FileSystemObject”) set colFolder = objFSO.GetFolder(sLogFolder) For…