Delete Old Files script

This sample script (WHICH IS PROVIDED AS IS) may help purging files older than n days in a folder  Just copy the following code to a VBS file (DeleteOldFiles.vbs). Sample call: cscript DeleteOldFiles.vbs C:\Windows\Temp 90 The code is:   option explicit Call DoTheJob()WScript.Echo “— end of script execution —“ Sub DoTheJob    dim limitDate    dim formattedLimitDate   …

1