Sometimes when I follow the process to safely remove a USB flash drive, I get told that I can't remove the drive because some programs are using it. However I'm unable to tell which programs these are, so I end up having to close programs - sometimes even randomly. 

How do I find out which program is using my USB flash drive?

I've searched the Internet but have found nothing promising; one solution might be via Process Explorer since it shows handles, but I don't know how to use it to solve my problem.

The best solution would be to have a program that can automatically close these programs for me, or at least tell me which programs these are.


Question: Convert serial port returned byte to millisecond
Answer: Close, it's actually 288643. It's actually 4:49, isn't it?

You use the BitConverter class to convert them, but you might need to reverse them first:

if (BitConverter.IsLittleEndian) {
  Array.Reverse(b);
}
int ms = BitConverter.ToInt32(b, 0);