Quote:

if move fails, it's in use, right?



If the failure reason (@ERROR) is 32 or 33 then it's a reasonable assumption.

That's not a check if the file is in use though. A check would be non-intrusive.