What are the API calls to copy a file that is currently locked. I\'m hoping to be able to use .Net, but Win32 calls would be fine as well.
Please feel free to chi
Almost the same as my answer to another question:
If you are on Win32, the official way to do it is to mark it to be moved on reboot, and ask the user to reboot. To mark the file to be moved on reboot, use MoveFileEx
with the MOVEFILE_DELAY_UNTIL_REBOOT
flag.
It's the same function, only this time you don't pass NULL as the destination.