Benny, it looks like this UDF will check for a running process and kill it if needed. Is there a way to check if a file is in use?
_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5