Making files close at a certain time

Soldato
Joined
18 Oct 2002
Posts
6,883
Hi guys,

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?

B@
 
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.
 
Last edited:
Back
Top Bottom