To close an open file or resource
Using Shared Folders
Open Computer Management (Local)
In the console tree, click Open Files.
Computer Management > System Tools > Shared Folders > Open Files
Do one of the following:
To disconnect all open resources, on the Action menu click Disconnect All Open Files.
To disconnect one open file or resource, in the details pane right-click the file name, and then click Close Session.
To open Computer Management, click Start, and then click Control Panel. Click Performance and Maintenance, click Administrative Tools, and then double-click Computer Management.
You must be a member of the Administrators or Power Users group to use Shared Folders.
Using a command line
Open Command Prompt
net file ID /close
Displays the names of all open shared files on a server and the number of file locks, if any, on each file.
The dynamically assigned ID of the shared resource.
Closes the shared resource and removes file locks. Type this command from the server where the file is shared.
To open command prompt, click Start, point to All Programs, point to Accessories, and then click Command Prompt.
To view the complete syntax for this command, at the Command Prompt, type:
net help file
If you close open files or resources, users might lose data. You should warn connected users before you close an open file or resource.
You can use Shared Folders to manage shared resources on both local and remote computers. Windows Explorer and the command line allow you to manage shared resources on your local computer only.
When you administer another computer remotely, your connection appears as an open named pipe. It cannot be closed.
You must have the appropriate permissions to complete this procedure.
Shared Folders overview
Send a console message to all connected computers
Send a console message to a computer that you are managing