When you type net file, it lists the files on your computer that are opened remotely.
PsFile freeware will do the same thing, plus it can work remotely, and it can close open files by name or by file identifier.
When you type PsFile /?, you receive:
Copyright (C) 2001 Mark Russinovich
Sysinternals - www.sysinternals.com
PsFile lists or closes files opened remotely.
Usage: psfile \[\\RemoteComputer \[-u Username \[-p Password\]\]\] <a href="/article/tips/jsi-tip-8528-psfile-freeware-is-a-net-file-replacement-that-can-work-remotely--81928?topic=id"> path\] \[-c</a>
-u Specifies optional user name for login to
-p Specifies password for user name.
Id Id of file to print information for or close.
Path Full or partial path of files to match.
-c Closes file identified by file Id.
Omitting a file identifier has PsFile list all files opened remotely.