Showing posts with label File. Show all posts
Showing posts with label File. Show all posts

Thursday, June 21, 2012

Determine which process has a file locked - Windows 7

Are you getting that "can't delete" or "can't rename" a file because it is in use message.  On Windows 7 you can use the Resource Monitor (just type the name into the Start search box to find it) to easily find out which process has a file locked.

Start the Resource Monitor and switch to the CPU tab.  Just type the file name into the Associated Handles search box and you will be able to see which processes have matching file names locked.  To kill the process, just right-click and choose "End Process".

Easy as pie and all part of Windows 7.


Monday, October 25, 2010

Fast and easy way to search files using C# TPL

I wanted to play around with the .NET 4 Task Parallel Library (TPL) a bit so I wrote a "Task" oriented app to perform a file name and/or content search. The UI is Windows Forms. It's nothing pretty, but I found it to be much faster than using Windows Explorer when recursing down big trees and across network shares. The code is written using Visual Studio 2010 and .NET 4.

Let me know if you have any features requests or find serious bugs.

Click here to download.

Can't RDP? How to enable / disable virtual machine firewall for Azure VM

Oh no!  I accidentally blocked the RDP port on an Azure virtual machine which resulted in not being able to log into the VM anymore.  I did ...