Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Script to close open files

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 01-02-2008
ara
 
Posts: n/a
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.

Cheers

Reply With Quote
  #2  
Old 02-02-2008
Meinolf Weber
 
Posts: n/a
Re: Script to close open files

Why will you do this? If users are working you can delete there data.

Best regards
Reply With Quote
  #3  
Old 31-08-2010
Member
 
Join Date: Aug 2010
Posts: 1
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
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 12:30 AM.