I was wondering if there was a way to force certain files, on a server, to close at a set time every night if people leave them open on their workstations?
I am not sure about closing only certain files, but there is a Microsoft support article that explains one way of disconnecting clients from all open files; http://support.microsoft.com/kb/290585
You could achieve the same effect by stoping and starting the Server service, too.
Edit: There is a command built into Windows from XP up called openfiles, it looks like this might be able to do what you want. Check out the syntax for it on technet; http://technet.microsoft.com/en-us/library/bb490961.aspx, it mentions in the examples "openfiles.exe /disconnect /op "c:\my documents\somedoc.doc" which would imply that you can close specific files. Create a batch file with the above and then use the task scheduler to run it at whatever time you want to disconnect the clients.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.