Somewhere in our scripts we have a DeleteFolder routine:
Set fso = CreateObject("Scripting.FileSystemObject")
This works fine, but once i a while a file in the folder is locked by another user, so de deletefolder method fails, with an errormessage on the screen.
What would be the best way to check for locked files in the to-be-deleted folder, so I can pop-up a message/warning ???