Script to close open files
Hi - We are running windows 2000 server. I want to be able to give
one of our users the ability to close certain open files on our data
(windows 2000) server. And really wondered what the best way to do
this would be. I was thinking via a script maybe but I'm unsure of
the contents that the script would require to do this.
At the moment I close the open files for the user through computer
management - shared folders - open files, but obviously I'm not always
here to do this.
Any help on this would be gratefully received.
Re: Script to close open files
rem %1 - full path to file
net files | find /i "%1" >> temp.txt
for /f "eol=- tokens=1 delims= " %%i in (temp.txt) do net files %%i /close
|Tags: script, server, shared folder, windows 2000, windows 2000 server|
|Thread Tools||Search this Thread|
|Similar Threads for: "Script to close open files"|
|Thread||Thread Starter||Forum||Replies||Last Post|
|PowerPoint on Office for Mac 2011 can open pptx files but refuses to open ppt files||Xylander||Windows Software||10||07-04-2012 11:57 AM|
|How to close an open session cd||Anathakrishnan||Windows Software||3||26-06-2009 05:24 PM|
|Problem with script in order to open another script in an extra window||Samsher||Software Development||2||14-01-2009 01:25 PM|
|Script to close open files in file server||Gustavo||Windows Server Help||2||22-05-2008 06:59 PM|
|close an open file by name||drdraxx||Windows Server Help||3||24-07-2007 02:51 AM|