I have to update the database every week on share network drive.
Usually I used this batch to close open file on network drive call "closeopenfile.bat"
for /f "skip=4 tokens=1" %%a in ('net files') do net files %%a /close
I run it from server side ( Win Server 2008 R2).
but my problem, it's close all open file on share drive, anyone can help me out how to modified bat file to close only file contains words (eg : AMC*.dat) or close only on sub folder share where the database that I want to update ( eg : E:\shareapps\RODS\database\weekly\ )
Really appreciated for find me out and many thanks!