Xcopy file in use failure

Posted on 2006-05-25
Last Modified: 2008-01-16
I am using xcopy in a batch file to back up some files on a server 2003 machine to an external harddrive.  When begining to copy a file that is in use (example 34fs3s.wa) the xcopy halts and does not finish.  Any ideas how to continue copying even if a file is in use?  
Question by:meatdog8
    LVL 95

    Accepted Solution

    Tell it not to.

    What switches are you using - I usually use /E /C /H /O /Y, depending on what exactly I'm trying to do.
    LVL 57

    Assisted Solution

    The /C switch tells XCOPY to continue even if it encounters an error.
    LVL 1

    Author Comment

    Is backing up with xcopy then not advisable when backing up company data?
    LVL 57

    Expert Comment

    It depends on the type of files you are backing up, where you are backing them up to, and why.

    Backing up to tape for offsite storage for disaster recovery and/or audit purposes, well anybody could look at the files so you could be compromising the security of the data.  Backing up to keep onsite for file recovery it not that bad and it is cheap.

    You need to first figure out what the requirments are for backing up the data and then look at options.

    LVL 8

    Expert Comment

    1.  Encrypt files
    2.  Zip files
    3.  Xcopy

    LVL 1

    Author Comment

    thank you all for your help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Suggested Solutions

    Title # Comments Views Activity
    Doc'in system (example?) BA 7 64
    only14 challenge 19 57
    scoresIncreasing challenge 10 47
    object oriented javascript web form 8 48
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now