search
top

Search and Delete Files less than 1 hour old with vbscript

Ran into a situation where temporary created files were filling the drives of a Windows 2003 server. So I turned to vbscript and creating a scheduled task to keep the space issue at bay. Here is the script. ‘ VBscript to delete files older than 1 hour ‘ directory to delete ‘ cleanoldfiles.vbs ‘ change dir variable to directory to target files sdir=”d:\my dir” dim dt,... read more

top