View Single Post
  #4  
Old July 1st 12, 09:42 PM posted to microsoft.public.windowsxp.basics
Jeremy Nicoll - news posts[_2_]
external usenet poster
 
Posts: 16
Default Volumn on disk not accessible

DavidM wrote:

How can I find out what's using this volume?


Any program using a file, volume or anything else tends to have one or more
"handles" to that resource. There's a SysInternals utility called "handle"
that displays handles, the resources they represent, and info on who own the
handles, available at:

http://technet.microsoft.com/en-gb/s...rnals/bb896655

If, say, you wanted to see which users/programmes had a handle for a file
named "C:\this\that\other.txt" you could use the command (in a command
window)

handle -a that\oth

(ie the argument after "-a" is just fragment of the value you're hoping to
see). For example I just opened a Windows Explorer view of a folder named
"C:\Documents and Settings\Laptop\My Documents\Downloads\Safety copies of
things not yet synced in Dropbox"

and in a command window issued:


C:\Documents and Settings\Laptophandle -a things

Handle v3.2
Copyright (C) 1997-2006 Mark Russinovich
Sysinternals - www.sysinternals.com

explorer.exe pid: 1856 1458: C:\Documents and Settings\Laptop\My
Documents\Downloads\Safety copies of things not
yet synced in Dropbox

C:\Documents and Settings\Laptop


that is, the only program with a handle to anything including "things" in
its name, is explorer.exe (running as process 1856) with a handle id of
1458.

I'd expect that

handle -a z:

would list any handle involving anything to do with drive z. Certainly
doing it here with

handle -a c:

produces a long long list of handles...


The handle utility also allows one to force the deletion of handles, which
can be useful because many programs seem not to release handles when they
are finished using a file/folder/volume/some other resource. Forcing a
handle supposedly being used by a particular program to be deleted can free
up the file/folder/whatever for use by other programs, and - provided you're
careful doing this - that can save you from having to reboot. Of course if
you force the system to free a handle that was actually in use, you can
expect something to crash.


--
Jeremy C B Nicoll - my opinions are my own.

Email sent to my from-address will be deleted. Instead, please reply
to replacing "aaa" by "284".
Ads