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 in file server

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 21-05-2008
Gustavo
 
Posts: n/a
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

Reply With Quote
  #2  
Old 22-05-2008
RemyMaza
 
Posts: n/a
Re: Script to close open files in file server

On May 20, 4:17?pm, Gustavo <Gust...@discussions.microsoft.com> 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 *
Reply With Quote
  #3  
Old 22-05-2008
Gustavo
 
Posts: n/a
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 <Gust...@discussions.microsoft.com> 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 *
>

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 in file server"
Thread Thread Starter Forum Replies Last Post
VB script or code to open copy and paste in file Madri Software Development 3 19-06-2012 04:36 PM
How to bypass the open file security warning in vb script Quasim Software Development 5 05-07-2011 07:27 PM
Disk util error when tried to open and close an excel file ? Judah Windows Software 3 28-11-2010 05:21 AM
Script to close open files ara Windows Server Help 2 31-08-2010 05:49 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 01:54 PM.