Click here to Skip to main content
15,886,422 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding a DataGridView into a DataGridViewComboBoxColumn Pin
brindus8-Mar-10 7:41
brindus8-Mar-10 7:41 
QuestionCombo box and String Collection editor [modified] Pin
sjwiht5-Mar-10 1:33
sjwiht5-Mar-10 1:33 
AnswerRe: Combo box and String Collection editor Pin
OriginalGriff5-Mar-10 1:48
mveOriginalGriff5-Mar-10 1:48 
QuestionMy user control problem as TNotebook control in Delphi Pin
Fired.Fish.Gmail5-Mar-10 1:17
Fired.Fish.Gmail5-Mar-10 1:17 
AnswerMessage Closed Pin
5-Mar-10 1:31
stancrm5-Mar-10 1:31 
GeneralRe: My user control problem as TNotebook control in Delphi Pin
Fired.Fish.Gmail5-Mar-10 1:34
Fired.Fish.Gmail5-Mar-10 1:34 
GeneralRe: My user control problem as TNotebook control in Delphi Pin
Dave Kreskowiak5-Mar-10 2:25
mveDave Kreskowiak5-Mar-10 2:25 
QuestionGet the process-name that locked the file Pin
Björn T.J.M. Spruit5-Mar-10 0:43
Björn T.J.M. Spruit5-Mar-10 0:43 
Situation:
There's a text-file, say mytextfile.txt, and it's opened by a process.
Lets say that it's unknown which process locked the file.
How would I go about getting the process that locked said file.

So simply put, I want to get the process-name of the process that's locking mytextfile.txt.

I've seen this question posted all over the net, without people actually giving good answers.
What I see a lot, is people debating the validity of the question. D'Oh! | :doh:
The validity of the question is not up for debate, the question and the answer to it, are.

So please, if you have any concrete advice or code samples, share them with me.
If you want to debate why I'm asking this question or the validity of my question, don't bother.
Because I'm certain there's a world of developers out there who would love to know the answer as well.
AnswerRe: Get the process-name that locked the file Pin
Rajesh R Subramanian5-Mar-10 2:05
professionalRajesh R Subramanian5-Mar-10 2:05 
GeneralRe: Get the process-name that locked the file Pin
Björn T.J.M. Spruit5-Mar-10 2:45
Björn T.J.M. Spruit5-Mar-10 2:45 
AnswerRe: Get the process-name that locked the file Pin
Rob Philpott5-Mar-10 2:08
Rob Philpott5-Mar-10 2:08 
GeneralNo pun intended Pin
Ennis Ray Lynch, Jr.5-Mar-10 5:31
Ennis Ray Lynch, Jr.5-Mar-10 5:31 
GeneralRe: No pun intended Pin
Rob Philpott5-Mar-10 5:46
Rob Philpott5-Mar-10 5:46 
AnswerRe: Get the process-name that locked the file Pin
Dave Kreskowiak5-Mar-10 2:22
mveDave Kreskowiak5-Mar-10 2:22 
RantRe: Get the process-name that locked the file Pin
Björn T.J.M. Spruit5-Mar-10 2:39
Björn T.J.M. Spruit5-Mar-10 2:39 
GeneralRe: Get the process-name that locked the file Pin
harold aptroot5-Mar-10 2:44
harold aptroot5-Mar-10 2:44 
GeneralRe: Get the process-name that locked the file Pin
Björn T.J.M. Spruit5-Mar-10 2:48
Björn T.J.M. Spruit5-Mar-10 2:48 
GeneralRe: Get the process-name that locked the file Pin
Dave Kreskowiak5-Mar-10 3:29
mveDave Kreskowiak5-Mar-10 3:29 
QuestionRe: Get the process-name that locked the file Pin
Björn T.J.M. Spruit5-Mar-10 4:12
Björn T.J.M. Spruit5-Mar-10 4:12 
GeneralRe: Get the process-name that locked the file Pin
J4amieC5-Mar-10 4:16
J4amieC5-Mar-10 4:16 
GeneralRe: Get the process-name that locked the file Pin
Björn T.J.M. Spruit5-Mar-10 5:09
Björn T.J.M. Spruit5-Mar-10 5:09 
GeneralRe: Get the process-name that locked the file Pin
Dave Kreskowiak5-Mar-10 7:49
mveDave Kreskowiak5-Mar-10 7:49 
GeneralDon't you just hate it Pin
Ennis Ray Lynch, Jr.5-Mar-10 5:34
Ennis Ray Lynch, Jr.5-Mar-10 5:34 
GeneralRe: Don't you just hate it Pin
J4amieC5-Mar-10 6:03
J4amieC5-Mar-10 6:03 
GeneralThe difference Pin
Ennis Ray Lynch, Jr.5-Mar-10 6:17
Ennis Ray Lynch, Jr.5-Mar-10 6:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.