I need to know how I can get the PID of a process that locking a file in the Windows(the same of command fuser in Linux). I need this PID to kill the process automatically and after delete this file.
-------------------------
suresh
Printable View
I need to know how I can get the PID of a process that locking a file in the Windows(the same of command fuser in Linux). I need this PID to kill the process automatically and after delete this file.
-------------------------
suresh
Hi
Though I couldn't get your question clearly still am trying to answer it.
To get the PID of a process in Windows you can use [b][I]tasklist[/I][/b] in the command prompt. To kill a specific process use [b][I]taskkill /pid pidno(for e.g. 1234)[/I][/b] command.
Just let me know if this is what you were looking for.
Thanks and Regards
Ashis