accessing locked files

Jul 1, 2012 at 12:49pm
i want read and write access to a file but i can't access it because it is used by another process.

is there any way i can unlock that file and at least copy that file to another location.

more info:
OS - windows 7 ultimate
and i got administrative user account.
Jul 1, 2012 at 1:20pm
I'm going to go ahead and suggest the obvious answer first, find and close the process that has the file locked. What file is it? Are you trying to work with a system file or something?
Jul 1, 2012 at 2:48pm
no i can not kill that process it's a kind of temporary file if i kill the process the process will also take the file with him.

so i need to copy it without killing the process.
i know this task need some good amount of knowledge.
but this is something i need to do.
i can do this using third party software, but i need separate and my own custom program.
Last edited on Jul 1, 2012 at 2:52pm
Jul 1, 2012 at 4:34pm
Shadow Copy or Volume Snapshot. It is a Windows service. This post (http://internetmarketingcoding.com/how-to-copy-a-locked-file-on-windows-7 ) seems to name a particular tool.
Jul 2, 2012 at 1:36am
Have you tried opening the file with GENERIC_READ access only?
Jul 2, 2012 at 1:01pm
http://li4ka.infoShadow Copy or Volume Snapshot. It is a Windows service. This post (http://internetmarketingcoding.com/how-to-copy-a-locked-file-on-windows-7 ) seems to name a particular tool.

ok. thank you. operating with the locked files were interesting me too =)
Jul 3, 2012 at 10:41am
Thanks for helping.
Topic archived. No new replies allowed.