Re: Script to close open files in file server



On May 20, 4:17 pm, Gustavo <Gust...@xxxxxxxxxxxxxxxxxxxxxxxxx> 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 *
.



Relevant Pages

  • Deleting a file while other script still appending to
    ... I have a script that logs activities to a txt log file. ... I noticed that when deleting the file from another window or shell, the script stops writing to the file. ...
    (perl.beginners)
  • Gracefully stopping an infinite loop after a particular keyboard input
    ... I am having a script that is doing some tests continuously. ... running it from cygwin under Windows OS and is currently using CTRL+C ... But by "ctrl+c" the script stops at that very ...
    (comp.lang.tcl)
  • Re: Script on SP3
    ... Under XP SP2 the script opens a IE instance to display the current ... status and then it close the IE instance and the script stops. ...
    (microsoft.public.windowsxp.general)
  • Re: Script on SP3
    ... Under XP SP2 the script opens a IE instance to display the current status ... and then it close the IE instance and the script stops. ...
    (microsoft.public.windowsxp.general)
  • RE: User log off and closing of applications.
    ... from the file server or SBS server at a scheduled time. ... This is a script related issue. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)