Results 1 to 3 of 3

Thread: Script to close open files in file server

  1. #1
    Gustavo Guest

    Script to close open files in file server

    Hello scripting guys, I need to create a script to close all the files that
    are open in my file server, because, when I run the script to delete files
    that are older than 3 2 days, the script stops and generates an error and I
    check this out and is because the files are open.

    Any idea to make this script? thanks

  2. #2
    RemyMaza Guest

    Re: Script to close open files in file server

    On May 20, 4:17 pm, Gustavo <[email protected]> wrote:
    > Hello scripting guys, I need to create a script to close all the files that
    > are open in my file server, because, when I run the script to delete files
    > that are older than 3 2 days, the script stops and generates an error and I
    > check this out and is because the files are open.
    >
    > Any idea to make this script? thanks


    Try that. This works for me on Win2K3 SP2

    OPENFILES /Disconnect /ID * /O * /A *

  3. #3
    Gustavo Guest

    Re: Script to close open files in file server

    thanks Remy for your answer, I one question more; If I need to close the open
    files that are in 3 o more folders in differents paths, how can I do that?

    "RemyMaza" wrote:

    > On May 20, 4:17 pm, Gustavo <[email protected]> wrote:
    > > Hello scripting guys, I need to create a script to close all the files that
    > > are open in my file server, because, when I run the script to delete files
    > > that are older than 3 2 days, the script stops and generates an error and I
    > > check this out and is because the files are open.
    > >
    > > Any idea to make this script? thanks

    >
    > Try that. This works for me on Win2K3 SP2
    >
    > OPENFILES /Disconnect /ID * /O * /A *
    >


Similar Threads

  1. VB script or code to open copy and paste in file
    By Madri in forum Software Development
    Replies: 3
    Last Post: 19-06-2012, 04:36 PM
  2. How to bypass the open file security warning in vb script
    By Quasim in forum Software Development
    Replies: 5
    Last Post: 05-07-2011, 07:27 PM
  3. Replies: 3
    Last Post: 28-11-2010, 05:21 AM
  4. Script to close open files
    By ara in forum Windows Server Help
    Replies: 2
    Last Post: 31-08-2010, 05:49 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,750,648,579.84391 seconds with 16 queries