xcopy - destination folder becomes a hidden system folder - why?


  1. Posts : 3
    Windows 7 64bit
       #1

    xcopy - destination folder becomes a hidden system folder - why?


    Hi,

    I've created a batch file containing the xcopy command to copy the entire partitioned drive to a folder on an external hard drive. However, when it is executed it works fine but the destination folder, called Backup, becomes a hidden system folder. Does any one know why this is the happening. I'm performing the xcopy on my parents computer, which is on win7.
    Code is as follows:

    REM This copies the intire H drive (Laptop Parition) to G drive (Segatemega Drive)
    xcopy H:\ G:\Backup /D /E /C /R /I /K /Y

    Cheers
      My Computer


  2. Posts : 53,363
    Windows 10 Home x64
       #2

    Not my forte but I believe adding the attribute to remove hidden and system would work. Not sure about the syntax, but since you seem to have a handle on it, something like:

    xcopy H:\ G:\Backup /D /E /C /R /I /K /Y
    attrib -h -s G:\Backup

    Microsoft Corporation
      My Computer


  3. Posts : 6,285
    Windows 10 Pro X64
       #3

    The Recycle Bin in the root of each drive is a Hidden, System file so I'm wondering if that is causing the problem.

    I just tried basically the same command and I also end up with the Backup folder being SHD.

    If I change the xcopy command to xcopy H:\*.* G:\Backup /D /E /C /R /I /K /Y it then the H and S attributes are not set.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:57.
Find Us