Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Finding PID of a file in Windows

 
Allan Santana
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And why do you ask in the linux/unix-section?

PID in Windows lock files - didn't I get your question?
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic