Anyone working on backing up of machines will know that your data will be accessed by many on the network. It is the usual hassle where the files you want to move will have sharing violations because someone will be accessing them over the network and it is not practical enough to find who is using what file and accordingly disconnect those users from the file. So here is a simple way to close all files shared over network on your Windows NT 4.0 based and Windows 200 computers. It is a simple command line tool which finds all open files and closes them,

for /f “skip=4 tokens=1” %a in (‘net files’) do net files %a /close

Run the above command from  your command prompt and all the files are disconnected from the network. However, as a obvious side effect whoever is connected to the files before you run this command will now be disconnected from it. So it is always better to perform this kind of clean up after issuing proper warnings to the users who are connected remotely.

Read more http://support.microsoft.com/?kbid=290585

Advertisements