Hi, 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. Thank you very much.
Originally posted by Stefan Wagner: And why do you ask in the linux/unix-section?
Because Windows people don't know what the "fuser" command is?
Seriously, though, there are Windows utilities for this kind of stuff, but unlike Linux, they aren't part of either the base distro or Microsoft developer kits. I recommend Google, since I've tried to avoid using Windows enough that I no longer remember their names.
BTW, "bumping" a query (especially after only 2 hours!) isn't considered polite on JavaRanch. The way things work around here, if SOMEONE hasn't answered within a day or 2 and you're not using some sort of fictitious name, we probably don't know the answer. Fortunately, we know LOTS of answers!
Customer surveys are for companies who didn't pay proper attention to begin with.