Dos Prompt Home Page Command Prompt Reference
OPENFILES

OPENFILES /parameter [arguments]

Description:
Enables an administrator to list or disconnect files and folders that have been opened on a system.

Parameter List:
/Disconnect     Disconnects one or more open files.

/Query            Displays files opened locally or from shared folders.

/Local             Enables / Disables the display of local open files.

/?                    Displays this help message.


OPENFILES /DISCONNECT

OPENFILES /Disconnect [/S system [/U username [/P [password]]]]
{[/ID id] [/A accessedby] [/O openmode]}
[/OP openfile]

Description:
Enables an administrator to disconnect files and folders that have been opened remotely through a shared folder.

Parameter List:
/S     system             Specifies the remote system to connect to.

/U [domain\]user      Specifies the user context under which the command should execute.

/P [password]          Specifies the password for the given user context.

/ID     id                    Specifies to disconnect open files by file ID. The "*" wildcard may be used.

/A      accessedby     Specifies to disconnect all open files by "accessedby" value. The "*" wildcard may be used.

/O     openmode       Specifies to disconnect all open files by "openmode" value. Valid values are Read, Write or Read/Write. The "*" wildcard may be used.

/OP     openfile          Specifies to disconnect all open file connections created by a specific "open file" name. The "*" wildcard may be used.

/?                              Displays this help message.


OPENFILES / QUERY

OPENFILES /Query [/S system [/U username [/P [password]]]]
[/FO format] [/NH] [/V]

Description:
Enables an administrator to display a list of files and folders that have been remotely opened on a system.

Parameter List:
/S     system         Specifies the remote system to connect to.

/U [domain\]user  Specifies the user context under which the command should execute.

/P [password]      Specifies the password for the given user context.

/FO format           Specifies the format in which the output is to be displayed. Valid values: "TABLE","LIST","CSV".

/NH                     Specifies that the "Column Header" should not be displayed. Valid only for "TABLE" and "CSV" formats.

/V                        Specifies that verbose output is displayed

/?                         Displays this help message.


OPENFILES /LOCAL

OPENFILES /Local [ ON | OFF ]

Description:
Allows an administrator to enable or disable the system global flag 'maintain objects list' which tracks local file handles. Changes made by this switch will take effect only after restarting the system.

Note: Enabling this flag reduces system performance.

Parameter List:
/? Displays this help message.

Examples

OPENFILES /Disconnect /?
OPENFILES /Disconnect /ID 1
OPENFILES /Disconnect /A username
OPENFILES /Disconnect /O Read/Write
OPENFILES /Disconnect /OP "c:\My Documents\somedoc.doc" /ID 234
OPENFILES /Disconnect /S system /U username /ID 5
OPENFILES /Disconnect /S system /U username /P password /ID *

OPENFILES /Query /?
OPENFILES /Query
OPENFILES /Query /FO csv /NH
OPENFILES /Query /FO LIST /V
OPENFILES /Query /S system /U username /P password /NH

OPENFILES /Local /?
OPENFILES /Local
OPENFILES /Local ON
OPENFILES /Local OFF
 

Associated Commands

 

 

Top of the Page - Command Prompt Reference Home Page
Last Page Update: 08/03/2012

© Sembee Ltd. 1998 - 2024.

Reproduction of any content on this web site is prohibited without express written consent. Use of this web site is subject to our terms and conditions.

All trademarks and registered trademarks are property of their respective owners. This site is not endorsed or recommended by any company or organisation mentioned within and is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given.

Sembee Ltd. is registered in England and Wales at 1 Carnegie Road, Newbury, Berkshire, RG14 5DJ.
Registered company number: 4704428. VAT Number GB 904 5603 43.

Server 1