Hi Friends,
I want to delete all the files in the given directory, i did that.
But while deleting some files it shows error like 'This file is used by another program'. So i want to kill the process which holding this file..


I can get the parent ID if i know the child id or child name, but here I know only file name...If i get the parent process id i can kill that process and delete the file...

Give me the idea to get the parent id by giving file name or deleting the busy file

Please help me,

Thanks,
Riyas.B
Growing Developer