Hello,
In the scriptcenter of MS I found a little script to remove all files
from a folder. It works perfect except when there a files in that
folder that are in use. In that case the script crashes with a
RT-error: Access denied - code 800A0046.
The directory I need it for must be cleaned up everyday but there are
always files of the current day in use.
Could someone help me to modify the current script so it will cleanup
all files except the one's in use.
The current script is:
Const DeleteReadOnly = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile("F:\webMethods\IntegrationServer4\logs\*.*"),
DeleteReadOnly
Thanks
Frank
--
FVG
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------