Re: What process is using my drive?
- From: Uwe Sieber <mail@xxxxxxxxxxxxx>
- Date: Wed, 15 Feb 2006 07:49:06 +0100
Rich Pasco wrote:
RemoveDrive V0.6 - removes removable drives
Freeware by Uwe Sieber - www.uwe-sieber.de
Removing Drive F:\ (Memorex TD CLASSIC 003B USB Device)
failed
check for open files on F:\ or \Device\Harddisk2\DP(1)0-0+b
Press any key to close
C:\>
Thank you for RemoveDrive; it is nice, but it still doesn't say which
process is using my drive.
That wasn't the plan. It shows the DOS device name of the
device to remove (\Device\Harddisk2\DP(1)0-0+b).
This one you can enter in the 'Find handle' function
of Sysinternals ProcessExplorer. Usually it's enough
to take a characteristic part like 'disk2'.
Of course I would like to add these 'Find handle' function
to my tool. In fact I did it but there is an unsolved problem
that makes it freeze when it checks a certain type of handle.
The handle check is activated by the -h switch.
http://www.uwe-sieber.de/files/removedrive07.zip
Greetings from Germany
Uwe
For example, it says:
.
C:\>RemoveDrive.exe F:
RemoveDrive V0.6 - removes removable drives
Freeware by Uwe Sieber - www.uwe-sieber.de
Removing Drive F:\ (Memorex TD CLASSIC 003B USB Device)
failed
check for open files on F:\ or \Device\Harddisk2\DP(1)0-0+b
Press any key to close
C:\>
In this case, I had another command prompt window open with its
current drive set to F:. I tried again after closing that window:
C:\>RemoveDrive.exe F:
RemoveDrive V0.6 - removes removable drives
Freeware by Uwe Sieber - www.uwe-sieber.de
Removing Drive F:\ (Memorex TD CLASSIC 003B USB Device)
success
Press any key to close
C:\>
So what would be nice would be if RemoveDrive could give a message
more like:
Failed; process CMD.EXE has files open on F:
Thanks,
- Rich
Uwe Sieber wrote:
Rich Pasco wrote:
I have a portable hard disk attached to my my WinXP computer (Firewire
interface, if it makes a difference). If I click on the "Safely remove
hardware" icon, I get a notice telling me the Ddevice 'Generic volumne'
cannot be stopped right now. Please try stopping the device again later."
With Sysinternals ProcessExplorer you can search for open
handles:
http://www.sysinternals.com/Utilities/ProcessExplorer.html
But you have to search for the DOS device name, not for the
drive letter. My command line tool RemoveDrive shows it:
http://www.uwe-sieber.de/files/removedrive.zip
It look so:
-----------------------
C:\>RemoveDrive.exe u:
RemoveDrive V0.6 - removes removable drives
Freeware by Uwe Sieber - www.uwe-sieber.de
Removing Drive U:\ (Corsair Flash Voyager USB Device)
failed
check for open files on U:\ or \Device\Harddisk3\DP(1)0-0+8f
-----------------------
In this case it would be enough to search for 'disk3' in the
ProcessExplorer (Find -> Find Handle).
Greetings from Germany
Uwe
- References:
- What process is using my drive?
- From: Rich Pasco
- Re: What process is using my drive?
- From: Uwe Sieber
- Re: What process is using my drive?
- From: Rich Pasco
- What process is using my drive?
- Prev by Date: Re: Installing XP on another computer
- Next by Date: Re: Excel 2000 & Excel 2003
- Previous by thread: Re: What process is using my drive?
- Next by thread: Re: Changing Time Stamp on Files
- Index(es):
Relevant Pages
|