Home
> Commands N-Z
> Commands O
OPENFILES
Description
| Syntax
| Parameters
| Switches
| Related
| Notes
| Examples
| Errorlevels
| Availability
Queries, displays, or disconnects files opened.
Syntax
OPENFILES
/?
OPENFILES
/DISCONNECT
[/A user_name
| /ID open_file_id
| /O open_mode]
[/OP open_file_name]
[/S Computer
[/U [Domain\]User
[/P password]]]
[/SE session_name]
OPENFILES
/LOCAL [ON | OFF]
OPENFILES
/QUERY
[/FO forma]
[/NH]
[/S Computer
[/U [Domain\]User
[/P password]]]
[/V]
Parameters
none.
Switches
- /?
(NTXP)
- Displays help.
- /A user_name
(NTXP)
- Disconnects all open files that were accessed by
the specified user on the computer specified by the
/S switch. Use
/QUERY to learn the file
ID. The wildcard (*) can be used to disconnect all
open files on the specified computer.
- /DISCONNECT
(NTXP)
- Disconnects one or more remote users connected to
open shared files.
- /FO format
(NTXP)
- Specifies the format to use for the query output.
Valid values are:
- /ID open_file_id
(NTXP)
- Disconnects the file opened with the specified
numeric open_file_id on the computer specified by the
/S switch. Use
/QUERY to learn the file
ID. The wildcard (*) can be used to disconnect all
open files on the specified computer.
- /LOCAL [ON | OFF]
(NT2003)
- Enables or disables the system Maintain Objects
List global flag, which tracks local file handles.
Changes made by this switch will take effect only
after restarting the system.
- Enabling the Maintain Objects List global flag may
slow down your system.
- /NH
(NTXP)
- Suppresses column header in the output. Valid only
when /FO forma is set to TABLE
or CSV.
- /O open_mode
(NTXP)
- Disconnects all open files with the specified
open_mode on the computer specified by the
/S switch. Includes the
Read/Write and Read modes. The wildcard (*) can be
used to disconnect all open files on the specified
computer.
- /OP open_file_name
(NTXP)
- Disconnects the open file that was created with
the specified OpenFileName on the computer specified
by the /S switch. The
wildcard (*) can be used to disconnect all open files
on the specified computer.
- /P password
(NTXP)
- Specifies the password of the user account that is
specified in the /U switch.
- /QUERY
(NTXP)
- Queries and displays all open files.
- /S Computer
(NTXP)
- Specifies the name or IP address of a remote
computer. (Do not use backslashes.)
The default is the local computer.
- /SE session_name
(NTXP ONLY)
- Disconnects all open files that were created by
the specified session on the computer specified by the
/S switch. The wildcard (*)
can be used to disconnect all open files on the
specified computer.
- /U [Domain\]User
(NTXP)
- Runs the command with the account permissions of
the user specified by User or Domain\User. The default
is the permissions of the current logged on user on
the computer issuing the command.
- /V
(NTXP)
- Specifies that verbose task information be
displayed in the output.
Related
none.
Notes
none.
Examples
none.
Errorlevels
none.
Availability
- External
-
- DOS
-
none
- Windows
-
none
- Windows NT
-
NTXP
NT2003
Last Updated: 2003/07/28
Direct corrections or suggestions to:
Rick Lively