XCopy command leaves folder hidden

Posted on 2006-05-09
Medium Priority
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 50

Accepted Solution

dbrunton earned 200 total points
ID: 16646242
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

Expert Comment

ID: 16647279
xcopy /h
 /H           Copies hidden and system files also.

Author Comment

ID: 16653412
thanks guys dbruntons answer worked a treat

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

839 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