O'Reilly logo

Windows XP in a Nutshell, Second Edition by Troy Mott, Tim O'Reilly, David A. Karp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

OpenFiles — \windows\system32\openfiles.exe

Synopsis

List all currently open files, either shared and accessed by other users on a network or (optionally) opened locally. (OpenFiles is included with Windows XP Professional only.)

To Open

Command Prompt openfiles

Usage

openfiles /local [ on | off ]
openfiles /query [/s system [/u user [/p [pass]]]]
   [/fo format] [/nh] [/v]
openfiles /disconnect [/s system [/u user [/p [pass]]]]
   {[/id id] [/a accessedby] [/o openmode]} [/op openfile]

Description

The OpenFiles tool lets you view a list of all the shared files that are currently open across the network and, optionally, files that are opened locally. This prevents, say, one user deleting a document that another user is working on.

Type openfiles without any options to display a report like this:

Files Opened Remotely via local share points:
---------------------------------------------
ID    Accessed By   Type       Open File (Path\executable)
===== ============= ========== ======================================
98    LOU           Windows    C:\Stuff to Eat\frittatas.txt
101   EDDIE         Windows    C:\Stuff to Drink\milkshakes.txt
107   CLANCY        Windows    C:\Stuff to Eat\pork chops.txt

OpenFiles accepts one of three primary commands, each of which has a range of parameters:

/local [ parameters ]

Turn on or off the inclusion of local files in reports. Type:

openfiles /local on

to turn on the `maintain objects list’ global flag; this setting is turned off by default and requires Windows to be restarted when changed. Note that turning ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required