• XCopy with Files In Use (XP)

    Author
    Topic
    #408500

    I use xcopy to copy Excel files from point A to point B. The issue I have is when someone has a file open and the batch file tries to copy it to point B. If I try to open the file from point B the file opens but gives me a notice that the user has a lock on the file. Is it possible to only copy those files not in use?

    Thanks,
    John

    Viewing 1 reply thread
    Author
    Replies
    • #862993

      John

      Are you saying that XCOPY stops copying all subsequent files when it encounters a file which is locked?

      If so, you might want to look at Microsoft’s ROBOCOPY (the XP010 version), or XXCOPY, both of which are more industrial strength, and continue after a file copy fails for an individual file. (There are others, such a Karen’s replicator…)

      John

      (PS In fact I’ve been running ROBOCOPYs between two servers down a slow line for almost exactly 48 hours now — don’t ask…!)

      • #862999

        John,

        The files actually get copied over. However If I were to open one of the files (copied while someone had it open) I receive a notification that the user has a lock on the file.

        The notification is odd because the copied file was from another server.

        John

        • #863003

          I would treat with some suspicion the contents of a copied file on whose source file someone had a lock…

          John

        • #863004

          I would treat with some suspicion the contents of a copied file on whose source file someone had a lock…

          John

      • #863000

        John,

        The files actually get copied over. However If I were to open one of the files (copied while someone had it open) I receive a notification that the user has a lock on the file.

        The notification is odd because the copied file was from another server.

        John

      • #1075823

        > … or XXCOPY, both of which are more industrial strength, …

        Thanks!

        And I have *so* missed the lounge ….

    • #862994

      John

      Are you saying that XCOPY stops copying all subsequent files when it encounters a file which is locked?

      If so, you might want to look at Microsoft’s ROBOCOPY (the XP010 version), or XXCOPY, both of which are more industrial strength, and continue after a file copy fails for an individual file. (There are others, such a Karen’s replicator…)

      John

      (PS In fact I’ve been running ROBOCOPYs between two servers down a slow line for almost exactly 48 hours now — don’t ask…!)

    Viewing 1 reply thread
    Reply To: XCopy with Files In Use (XP)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: