That is really strange. How/why would the file do anything with windows?This makes no sense!
It's like trying the method deletes the file, and then protects the file from being overwritten.
I feel like I'm in some kind of debugger hell.
It's been hard to find anything online that even remotely comes close.