Can I rename a file that is open on Windows XP?

Posted by Radek on Super User See other posts from Super User or by Radek
Published on 2012-05-28T06:29:30Z Indexed on 2012/09/23 9:41 UTC
Read the original article Hit count: 250

Filed under:
|
|

I want to programatically rename a file and it could be open. It's a log file. When I was testing my code the rename part didn't work because the log file TestPro.log was open by the TAF (Test Automation Framework).

When TestPro is running and I try to delete the file I get the error "Cannot delete because is being used by another person or program."

Is there any way how to rename a file (programatically) that is open the way the log file was?

© Super User or respective owner

Related posts about windows-xp

Related posts about delete