Tester
Joined: 06 Jul 2006 Posts: 48 Location: Poland
|
Posted: Thu Jun 28, 2007 6:52 pm Post subject: How get list of open files handles for specific drive? |
|
|
I try to write script for automatically unmounting encrypted drive.
But this drive refuses to unmount if some files are open or in use on this drive.
There is of course possible to force dismount, but I want to make it safe, so maybe anyone knows how to determine if (and which) a files are open on specific drive letter and for which processes this open handles belongs? So if I have list of processes which have open files, then I can try to close them first and then safely dismount drive. |
|