Archived from groups: microsoft.public.windowsxp.basics (
More info?)
"Joe" <user@host.com> wrote in message
news:5-mdnUJpUbELnO7cRVn-tA@rogers.com...
>
> "Richard" <rwrede2@hotmail.com> wrote in message
> news:10n5vf3e3r2e1e9@corp.supernews.com...
> > How do I use the Systernals "Handle" program, the instructions that are
on
> > the download page don't make sense to me, it says ...
> >
> > Installation
> > You run Handle by typing "handle". You must have administrative privilge
> to
> > run Handle.
> > Handle works on Windows 9x/Me and Windows NT and higher.
> > Usage
> > Handle is targetted at searching for open file references, so if you do
> not
> > specify any command-line parameters it will list the values of all the
> > handles in the system that refer to open files and the names of the
files.
> > It also takes several parameters that modify this behavior.
> >
> >
> > usage: handle [-a] [-p process] [name]
> >
> >
> > -a Dump information about all types of handles, not just those
> that
> > refer to files. Other types include ports, Registry keys,
synchronization
> > primitives, threads, and processes.
> >
> >
> > -p process Instead of examining all the handles in the system,
> this
> > parameter narrows Handle For Windows NT's scan to those processes that
> begin
> > with the name process. Thus:
> >
> > handle -p exp
> >
> > would dump the open files for all processes that start with
"exp",
> > which would include Explorer.
> >
> >
> > name This parameter is present so that you can direct Handle to
> > search for references to an object with a particular name. For example,
if
> > you wanted to know which process (if any) has "c:\winnt\system32" open
you
> > could type:
> >
> > handle winnt\system
> >
> > The name match is case-insensitive and the fragment specified
can
> be
> > anywhere in the paths you are interested in
> >
> > Where do I type Handle? I tried clicking the handle.exe and it runs a
list
> > of something in CMD I tried opening Run>CMD, and typed handle but it
does
> > nothing, I hit enter it says 'Handle is not a proper..."
> >
> > I know nothing about using cmd prompt.
> >
> >
>
> Go one step further. Open run->type cmd-> type handle /?
> You should now have a command window open with instructions on which
> commands you should use to do what you want. Read them carefuly, take
your
> time and you should get through it. I don't think anyone is going to
teach
> you how to use command line utilities in this forum. Perhaps look on the
> web for a tutorial.
>
> Joe
>
>
>
Maybe I'm wrong, I thought it was a different forum. I'm going to see if I
can pull my foot out of my mouth.
Command line utilities are actually quite simple because they all have a
sequence in which they'll accept words on a command line. A general format
might be
command (options) (argument)
command is of course the command for the program, in your case handle
options are generally letters or words preceded by dashes (-) or slashes
(/). The command I showed you in my previous post shows you one way you can
use to get help for a given command. Often you can get the help by just
typing the commnand without anything else but usually in a command window
you type the command and the option /?
argument is the file, folder, program, etc that the work will be performed
on. In your case I believe it might be the file you're curious about.
To be able to run handle it should be in your path or you should explicitly
type the path to the executable. Take the handle program and put it in C:\
then go into the folder using the cd command. Then type handle and see what
happens.
commands you will likely need
cd :for this command two dots (..) takes you back a step, try cd /?
dir :this shows you what files and folders exist in your current
directory.
This is all I have time for right now but I hope that helps you.
Joe