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.