• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
OpenFiles \windows\system32\openfiles.exe

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 on this setting may slightly reduce performance.


/query [ parameters ]

Display a list of opened files and folders; specify /query for more flexibility than using openfiles without any options, such as the ability to connect to a different machine. Type openfiles /query /? for more information on the available parameters.


/disconnect [ parameters ]

Selectively disconnect files and folders that have been opened remotely. When viewing the list of open files, each entry has an ID; that ID can be used to close open files. Type openfiles /disconnect /? for more information on the available parameters.

Notes

OpenFiles is available only to a user with administrator privileges.

See Also

“Net”

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint