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]]]]
openfiles /query [/s system [/u user [/p [pass]]]]
[/fo format] [/nh] [/v]
openfiles /query [/s system [/u user [/p [pass]]]]
[/fo format] [/nh] [/v]
openfiles /disconnect [/s system [/u user [/p [pass]]]]
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: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access