1

I've searched around and I found that net file can be used in order to find out which user is locking a file. Notice I don't want to force close the file just yet

am I in the right path?

0

Am I on the right path?

Yes.

net file without any further options will:

list 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.


net file /help

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.

Further Reading

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.