Purpose:Show processes locking a file


Format:FILELOCK [/C /F] filename



/F(orce close)




FILELOCK returns a list of the processes with a lock on the specified file, and optionally closes them to free the file. If no process is locking the file, FILELOCK will return without displaying any output (including not showing any error messages).




/CRequests the process(es) close.


/FLike TASKEND /F, forces the process(es) to close.