Linked Questions

10 votes
2 answers
3k views

Possible Duplicate: How do I find out which process is locking a file using .NET? I want to copy a file but it is locked by another application, so a FileInUseException is thrown. I would like to ...
Michael Hedgpeth's user avatar
61 votes
0 answers
58k views

In Windows, how do I determine (using C#) what process locked a file? Third-party tools are helpful, but not what I'm looking for.
aronchick's user avatar
  • 7,168
15 votes
0 answers
30k views

I found a similar question here but it was closed/accepted with an answer of "don't do that". I'm in a situation where I don't care what happens to the other applications, I want to take a file that ...
makerofthings7's user avatar
0 votes
1 answer
3k views

I have created a button. In the event handler for the button I want to delete all the files in the folder (abc). Here is the code for this: private void button1_Click_1(object sender, EventArgs ...
user avatar
2 votes
0 answers
4k views

How to programmatically determine from a process P, which other process P' has a lock on a file, that prevents P from recreating that file ? I know there are tools to do that, but how do they achieve ...
user192472's user avatar
1 vote
2 answers
3k views

Possible Duplicates: How does one figure out what process locked a file using c#? How do I find out which process is locking a file using .NET? Hi, i try to get the name of the process wich ...
Alexander's user avatar
  • 3,754
0 votes
1 answer
234 views

I'm working with files on C#, my cose is supposed to delete some lines from a file as mentioned here: var tmpFile = Path.GetTempFileName(); var LinesToKeep = File.ReadLines(path).Where(l => l....
Mehdi Ben Hamida's user avatar
1 vote
0 answers
113 views

Possible Duplicate: How do I find out which process is locking a file using .NET? I wanna to know which process access to specific file that i chosen. Can any one introduce me a way of ...
Hossein Mobasher's user avatar
3 votes
0 answers
44 views

How can I get in C# the application that is using a given file ? To be more precise, if the app I am developing wants to overwrite a file that is being used by another application, I would like to ...
Sylvain B.'s user avatar
283 votes
12 answers
1.0m views

I have some code and when it executes, it throws a IOException, saying that The process cannot access the file 'filename' because it is being used by another process What does this mean, and ...
Adriano Repetti's user avatar
58 votes
9 answers
58k views

I'm looking for a way to delete a file which is locked by another process using C#. I suspect the method must be able to find which process is locking the file (perhaps by tracking the handles, ...
Dean Bates's user avatar
  • 1,967
24 votes
10 answers
50k views

I have a set of nightly reports. Sometimes I get the exception: The process cannot access the file because it is being used by another process How do I tell what process is holding on to the file?...
Greg Finzer's user avatar
  • 7,124
12 votes
3 answers
10k views

Saw this question here : What Great .NET Developers Ought To Know (More .NET Interview Questions)
nullDev's user avatar
  • 11.7k
7 votes
2 answers
22k views

I am building a C# program that unzips a file, and work on this file. Sometimes I get this message: "the process cannot access the file c:.... because it is being used by another process" What I can ...
Gold's user avatar
  • 62.9k
11 votes
3 answers
4k views

This error occurs sometimes, usually this step works fine, but in about 10% cases it fails with below message. Nuget installer step is first build step, and also "clean checkout" is enabled ...
Lev's user avatar
  • 3,921

15 30 50 per page
1
2 3 4 5