The syntax of this command is:
NET FILE [id [/CLOSE]]
This command displays the names of all open shared files and
the number of locks, if any, on each file. It may also be
used to close shared files.
COMMENTS
When used without options, the "net file" command lists all
the open files at a server, as follows:
ID Path Username # Locks
------------------------------------------------------------------------
1073742661 C:\TMP\NEWFILE.BAT LAURA 0
1073742637 C:\HOME\AL\MAIL.LST SAM 0
1073742528 C:\HOME\KRM\LETTER.SLN KAREN 0
1073722830 C:\HOME\KRM\MLIST.NDX KAREN 1
The command completed successfully.
This screen displays:
Column Contents
____________ _________________________________________
ID The identification number assigned to the
open file.
Path The pathname of the open file.
Username The username of the person using the file.
# Locks The number of locks on the file.
You will receive one entry for each instance of an open
file; therefore, if a file is opened three times (or by
three different users), you will receive three separate
entries.
The administrator has the ability to close files, which
removes any locks, by using the "net file" command.
The "net file" command also can be typed "net files".
There are a number of reasons why you may need to close an
open file on the server. Sometimes you simply need to clean
up after a program that left a file open. Other times, you
may need to close a file in which somebody is working. For
example, someone may use a word processing program to open a
file and then leave his/her desk, leaving the file locked.
If you discover a security breach such as someone reading a
confidential file, you can disable the account and then use
the "net file" command with the /CLOSE option to close the
file. If you use "net file /close" without first disabling
the account, the person will automatically reconnect to the
file.
EXAMPLES
At a UNIX system console, to display additional information
on a server's open file, type the following:
net file 1073742661
where 1073742661 is the file id number.
To close the open file 1073742661, type the following:
net file 1073742661 /close
where 1073742661 is the id number of the file to be closed.
This command closes the file and releases any file locks,
making the file available for local area network use.
To run the same command remotely (on server "market_asu"), type
the following (replacing "password" with the password for
"administrator":
net admin \\market_asu password /command net file
1073742661 /close
SEE ALSO
For information about See
_____________________ _________
Getting help with network commands net help
Sharing files net share
To get Help on command options, type "net help {command} /options | more".
To get Help one screen at a time, type "net help {command} | more".