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?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityYes.
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.
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.