Re: Copying Files / Created Date

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Tarjei T. Jensen (tarjei_at_online.no)
Date: 02/02/05


Date: 2 Feb 2005 07:39:29 +0100

Michael Harris wrote:
> 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.

Would it help to rename the file before it is deleted?

Personally I would copy the remote file first with a different name. Then
rename the old file and then rename the new file.

greetings,



Relevant Pages

  • Re: Discarding contexts of a text file starting from an offset
    ... there is no standard function to ... The obvious solution is to use a temp file, ... Some versions of rename() do not allow you to rename across ... original file name and simply delete the copy. ...
    (comp.lang.c)
  • Re: vb application locks file
    ... Make a temp file, ... My email processors, for example, create their message files in a temp folder, ... complete writing the data, close the file, then "rename" it to a target directory. ...
    (microsoft.public.vb.general.discussion)
  • Re: Cannot Open WORD
    ... When I tried to rename dgnwnlc.dot and dgnword.dot I was ... After making about ten such dumps into the Recycle Bin, ... the C:/Recycled folder. ... >encountering temp file problems. ...
    (microsoft.public.word.application.errors)
  • Re: WMI/VB Script to rename multiple computers in a domain
    ... I need help to device a script that can rename multiple computers in my ... We need to know how you plan to rename these objects. ... the new Common Names. ... Most likely you want the Common Name and NetBIOS names ...
    (microsoft.public.windows.server.scripting)
  • Re: Change distribution group information
    ... If you want to change the common name, right-click it in AD Users & ... Computers and select Rename. ... need to change and be accessible in outlook for internal use only. ...
    (microsoft.public.exchange.admin)