windows - Close all locally opened files in a given directory -


i'm trying add step batch process make sure local files have been closed in specific directory.

everything can find keeps pointing me net files , openfiles, both of these options close open files accessed via share (not local).

i've looked @ both taskkill , microsoft's handle tool, can tell isn't smartest way go task.

is there equivalent net files close files opened locally?

any appreciated.

you might try handle on command line:

for /f "tokens=2 delims=:" %a in ('handle "c:\folder"') @for /f %b in ("%~a") @echo handle -c %~b 

remove echo if output looks good.


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -