I want to write a script that forces closed a specific file and then copies it from one server to another.
To manually do this I would use
Administrative Tools --> Computer Management --> Shared Folders --> Open Files
Is there a way to script this?
I've used the SysInternals utility Handle in the past and wrapped a script around that before.
You could also use the command: