XCopy command leaves folder hidden

Posted on 2006-05-09
Last Modified: 2012-06-22
Hi All,

I'm trying to use xcopy to copy the contents of one drive to another. I browse to the destination drive and then into the folder that I want to put the files in using the command prompt and then xcopy the contents of the drive that I want using  xcopy d: /c /e  . It appears to be working fine other than that the folder becomes hidden the minute the copy command is issued. The files are all copied over okay, and everything works other than the folder and contents being hidden. I've had a look at the help and modified my command to xcopy d: /c /e /i /k /r , but it still does the same. Can someone please tell me what I'm doing wrong.

Question by:daveboyle99
    LVL 47

    Accepted Solution

    Interesting.  Try the following


    xcopy d:\*.* /c /e


    xcopy d:\*.* /c /e /i /k /r

    Usually I'd use something like

    xcopy d:\*.* /s /e /c /h /r /k
    LVL 7

    Expert Comment

    xcopy /h
     /H           Copies hidden and system files also.

    Author Comment

    thanks guys dbruntons answer worked a treat

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
    Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 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

    11 Experts available now in Live!

    Get 1:1 Help Now