Close open file

  • Thread starter Thread starter Mario Pflucker
  • Start date Start date
M

Mario Pflucker

Is there a way to close all open connections to a file at once? I can do it
one at the time from the computer management / shared folders / open files
screen, but it is very time consuming, since these are network applications.

Thanks,

MP
 
for /f "skip=4,tokens=1" %q in ('net file') do (net file %q /close)

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top