Link to home
Start Free TrialLog in
Avatar of myfootsmells
myfootsmells

asked on

cmd line command to kill open files on a server?

Is there some command line command to kill all connections to an open file on a server?

myfootsmells
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Well:
net stop server
will stop the server serrvice and cut off everyone connected.

A quick way to do this is to type the following on a command line:

net stop server & net start server

The above line will both stop and then restart the server service in as quick a time as possible.

You do realize, you'll end up potentially screwing up peoples files if you close open connections...
Avatar of myfootsmells
myfootsmells

ASKER

There isn't a way for me to close a specific file?

Yes I understand that, but there are certain files that need to be altered at midnight and if users have that file open, well it doesnt work :)

myfootsmells
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial