To close an open file or resource

Using Shared Folders

1.

Open Computer Management (Local) 

2.

In the console tree, click Open Files.

Where?

Computer Management > System Tools > Shared Folders > Open Files

3.

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.

 Note

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

Type:

net file ID /close 

ValueDescription

net file

Displays the names of all open shared files on a server and the number of file locks, if any, on each file.

ID

The dynamically assigned ID of the shared resource.

/close

Closes the shared resource and removes file locks. Type this command from the server where the file is shared.

 Note

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

 Caution

If you close open files or resources, users might lose data. You should warn connected users before you close an open file or resource.

 Note

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

Net file

Send a console message to all connected computers

Send a console message to a computer that you are managing



© 2014 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies