Re: Copying Files / Created Date

From: Tom (nospam_at_nospam.com)
Date: 02/02/05


Date: Wed, 2 Feb 2005 08:09:19 -0000


"Michael Harris (MVP)" <mikhar at mvps dot org> wrote in message
news:OehrnzLCFHA.2180@TK2MSFTNGP10.phx.gbl...
> This has been discused before in the scripting NGs...
>
> That's Windows at work ;-)... The process of updating an existing file by
> deleting it then creating a new file (or renaimg some temp file) with the
> same name as the original is very common among apps that edit documents.
>
> If that sequence occurs within 15 seconds, Windows treats it as an update
of
> an existing file. To defeat that behavior, you have to intoduce at least
a
> 15 second delay between the delte of the old file and the creation of the
> new file of the same name.

Thanks Michael, that's very helpful.

Funnily enough, I did think a delay might help but didn't think to go as
high as 15 seconds. I'll give that a go.

Thanks again,

Tom



Relevant Pages

  • Re: From JScript to VBScript???
    ... "Michael Harris " <mikhar at mvps dot org> wrote in message ... : and scroll down to: Server Script Order of Execution ... without even the implied warranty of merchantability ...
    (microsoft.public.scripting.jscript)
  • Re: email form
    ... "Michael Harris " <mikhar at mvps dot org> wrote in message ... > Microsoft® Windows®2000 Scripting Guide ... > WSH 5.6 documentation download ...
    (microsoft.public.inetsdk.programming.scripting.vbscript)
  • Re: VBscript parsing in IIS
    ... "Michael Harris " <mikhar at mvps dot org> wrote in message ... > WSH 5.6 documentation download ... > Function GetScriptEngineInfo ...
    (microsoft.public.scripting.vbscript)
  • Re: Event log monitoring
    ... too familiar with VBS - any way I could get some sample code? ... "Michael Harris " <mikhar at mvps dot org> wrote in message ... > shop and exit the script. ...
    (microsoft.public.scripting.vbscript)
  • Re: Scripting and Windows AntiSpyware (Beta)
    ... "Michael Harris " <mikhar at mvps dot org> wrote in message ... Scripting and Windows AntiSpyware ... I'm not running the BETA in production ...
    (microsoft.public.scripting.vbscript)