How to Check for Open Files on Windows

Last reviewed: 11/22/2011
Article ID: R10028

The information in this article applies to:

SUMMARY

When a workstation has intermittent network connection issues, or when Tabs3 and PracticeMaster software was not closed properly, files can be left in an open state by the workstation due to the server not receiving the command to close the files.  Generally, having the user log out of the network and then log back in can resolve the issue if you know who has the files open. 

MORE INFORMATION

To view which files are currently open and which user has them open on Windows 7/Vista/XP or Windows Server 2008/2003, the following methods can be used.

Note: You must be at the File Server when using either method. Be aware that the following methods list files opened by other workstations accessing the server. They do not include files opened by programs running on the server.

Preferred Method

The method used to check for open files depends on which Windows operating system is being used.

Windows Server 2008 (including Windows Server 2008 R2 and Windows Small Business Server 2011)

The Share and Storage Management program is an administrative tool for for determining which files are open and which workstation has them open. To access the Share and Storage Management program, use the following steps.

To access the Share and Storage Management program on Windows Server 2008 R2/2008/SBS 2011

  1. From the Start button, click Administrative Tools.
  2. Double-click Share and Storage Management.
  3. Click Manage Open Files from the Actions pane.
    [Note: This window displays both files and directories which are being accessed. You may need to refresh the screen by clicking Refresh.]

Windows 7/Vista/XP or Windows Server 2003

The Computer Management program contains a System Tool, which is useful for determining which files are open and which workstation has them open. To access the Computer Management program, use one of the following methods.

To access the Computer Management program on Windows 7/Vista/XP or Windows Server (all versions)

  1. From your Windows desktop or the Start menu, right-click My Computer (or Computer) and select Manage. This will open the Computer Management program. (Note: You can also access the Computer Management program from Administrative Tools via the Control Panel.)
  2. Click Shared Folders and then Open Files. [Note: You may need refresh the screen (Action | Refresh).]

Alternate Method

Alternatively, the NET command can be used from a Command prompt to list the same information as the Computer Management program.

To view all files that are open:

From a Command prompt, enter the following command:

NET  FILE

To view a specific file that is open:

From a Command prompt, enter the following command:

NET  FILE  |  FIND  "<file name>"

For example:

NET  FILE  |  FIND  "t3client.dat"

The command NET FILE will display the information as follows:

ID        Path                           User name    # Locks
-------------------------------------------------------------
9         D:\index.lnk                   shari           0
11        D:\shari\report.txt            shari           0
23        D:\util\test.exe               shari           0
The command completed successfully.

It is also possible to use NET FILE to close a file by entering the following command at a Command prompt. Notice that the file ID is specified as opposed to the file name.

NET  FILE  23  /CLOSE

Resources


© 1999-2012 Software Technology, Inc.   All rights reserved. Terms of Use
The maker of Tabs3 and PracticeMaster
Tabs3, PracticeMaster, and the “pinwheel” symbol (The "Pinwheel" symbol is a Registered Trademark of Software Technology, Inc.) are registered trademarks of Software Technology, Inc.
e-Mail Suggestions for the Knowledge Base to: kb@Tabs3.com
Technical Support via e-mail is not available.
Knowledge Base:   http://support.Tabs3.com
Web Site:   http://www.Tabs3.com