Windows Server 2003 in a Nutshell

net file

Displays a list of shared files that are open and closes them.

Syntax

net file [ id [/close] ]

Options

None

Lists the shared files on the server that are open

id

Represents the identification number of the file

/close

Closes the file

Examples

Display a list of shared files open on the server:

net file ID Path usernames # Locks ----------------------------------------------------- 15 \PIPE\lsarpc BACH$ 0 2765 G:\pub\mydoc.txt ADMINISTRATOR 0 The command completed successfully.

Close the open file:

net file 2765 /close The command completed successfully.

Notes

See Also

net session , net share , net use , net view , Shared Folders

Категории