How do I kill all program.exe
instances that are currently open through a Windows network share?
I know how to list the open files net files | Findstr "program.exe"
but how then how do I kill it?
In Linux I would type:
kill -9 `pidof program.exe`
What is the equivalent of this in Windows?
net files
shows you files that are open on your machine from other peoples computers. Do you want to kill the process on the remote machine? If so, then we'll need to know what versions of Windows they're running.