如何使用命令提示符网络文件查看哪个用户正在锁定文件?


1

我一直在搜索,我发现可以使用网络文件来找出哪个用户正在锁定文件。注意我还不想强制关闭文件

我在正确的道路上吗?

Answers:


0

我在正确的道路上吗?

是。

net file 没有任何进一步的选择将:

列出服务器上的打开文件。 上市包括 该   分配给打开文件的标识号,文件的路径名, 用户名 ,以及文件上的锁数。


网络文件/帮助

The syntax of this command is:

NET FILE
[id [/CLOSE]]

NET FILE closes a shared file and removes file locks. When used without
options, it lists the open files on a server. The listing includes the
identification number assigned to an open file, the pathname of the file,
the username, and the number of locks on the file.

This command works only on computers running the Server service.

id      Is the identification number of the file.
/CLOSE  Closes an open file and removes file locks. Type this command
        from the server where the file is shared.

进一步阅读

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.