@FILELOCK[filename] : Returns the PIDs of the processes with a lock on the specified file.

 

Example:

 

echo %@filelock[d:\path\myfile.txt]