1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Copy in CMD while files are in use

Discussion in 'Windows XP' started by Alex @ Atelka, Oct 8, 2008.

Thread Status:
Not open for further replies.
Advertisement
  1. Alex @ Atelka

    Alex @ Atelka Thread Starter

    Joined:
    May 12, 2008
    Messages:
    76
    Hi guys,

    I was wondering if the following command line was good in case I want to copy files from an hard drive on a pc to an external one all the while not knowing if the files are still in use or not.

    Those files are usually .xls and .doc files.

    Here's the code.

    Code:
    xcopy C:\Folder1\ D:\Folder1\ /C /D /E /Y 
    Any thoughts or advices?
     
  2. Wanderer2

    Wanderer2

    Joined:
    Jan 28, 2008
    Messages:
    1,428
    Open files won't copy. Only the /c will continue copying after you get an error.

    Otherwise your /d syntax is incorrect. You need to include the date but I don't see how date applies to your scenerio.
     
  3. Alex @ Atelka

    Alex @ Atelka Thread Starter

    Joined:
    May 12, 2008
    Messages:
    76

    I want the Batch file to only copy file that were modified. The total size of documents is around 1,50 gb.
     
  4. WhitPhil

    WhitPhil Gone but never forgotten Trusted Advisor

    Joined:
    Oct 4, 2000
    Messages:
    8,684
  5. TheOutcaste

    TheOutcaste

    Joined:
    Aug 7, 2007
    Messages:
    9,028
    Actually, you don't need to specify a date:
    Code:
    /D:m-d-y     Copies files changed on or after the specified date.
                 [B]If no date is given, copies only those files whose
                 source time is newer than the destination time.[/B]
    And if you want to copy files that are in use, which most free utilities will simply skip, you can use Hobocopy, which takes advantage of the Volume Shadow Copy Service to let you copy files that are locked or in use.

    Jerry
     
  6. Alex @ Atelka

    Alex @ Atelka Thread Starter

    Joined:
    May 12, 2008
    Messages:
    76
    Thanks a lot guys :)
     
  7. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - Solved Copy while
  1. Alpha227
    Replies:
    7
    Views:
    510
  2. plankman
    Replies:
    4
    Views:
    642
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/757315

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice