Results 1 to 3 of 3

Thread: Script to close open files

  1. #1
    ara Guest

    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

  2. #2
    Meinolf Weber Guest

    Re: Script to close open files

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

    Best regards

  3. #3
    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

Similar Threads

  1. Replies: 10
    Last Post: 07-04-2012, 11:57 AM
  2. How to close an open session cd
    By Anathakrishnan in forum Windows Software
    Replies: 3
    Last Post: 26-06-2009, 05:24 PM
  3. Replies: 2
    Last Post: 14-01-2009, 01:25 PM
  4. Script to close open files in file server
    By Gustavo in forum Windows Server Help
    Replies: 2
    Last Post: 22-05-2008, 06:59 PM
  5. close an open file by name
    By drdraxx in forum Windows Server Help
    Replies: 3
    Last Post: 24-07-2007, 02:51 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,543,305.87953 seconds with 17 queries