1

Я искал вокруг и обнаружил, что сетевой файл можно использовать, чтобы узнать, какой пользователь блокирует файл. Заметьте, я пока не хочу принудительно закрывать файл

я на правильном пути?

1 ответ1

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.

Дальнейшее чтение

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .