If a file is in use, is there any way to close the file so that the file can be opened by current App? Thanks.
Printable View
If a file is in use, is there any way to close the file so that the file can be opened by current App? Thanks.
My idea would be to 1st find who has the handle on the file.
And then to kill the process.
However that's harsh as killing a process leads to unexpected results like the file being corrupted. Furthermore if a file had a handle preventing from opening there should be a reason that no other access it.
Hi,
Try this link
http://social.msdn.microsoft.com/For...0-a78437956bc8
Curt