D
drdraxx
I'm looking for a way to be able to close an open file by name on a
Windows 2003 Server Standard automatically. In a few google searches,
I found people listing a command to close all open files:
for /f "skip=4 tokens=1" %a in ('net files') do net files %a /close
and one to close individual files:
net file ID /close
The problem with that is knowing the file ID. To test I tried to open
a file on the server, check the ID, close the file and open it again
but the ID changed. Does anyone know of a method I could use to close
one specific file by name by say a scheduled task or .bat file or
anything like that?
Windows 2003 Server Standard automatically. In a few google searches,
I found people listing a command to close all open files:
for /f "skip=4 tokens=1" %a in ('net files') do net files %a /close
and one to close individual files:
net file ID /close
The problem with that is knowing the file ID. To test I tried to open
a file on the server, check the ID, close the file and open it again
but the ID changed. Does anyone know of a method I could use to close
one specific file by name by say a scheduled task or .bat file or
anything like that?