accessing locked files

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.
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?
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
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.
Have you tried opening the file with GENERIC_READ access only?
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 =)
Thanks for helping.
Topic archived. No new replies allowed.