Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: xcopy - destination folder becomes a hidden system folder - why?


09 Jun 2012   #1

Windows 7 64bit
 
 
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 Windows 7.
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 System SpecsSystem Spec
.

10 Jun 2012   #2

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

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 System SpecsSystem Spec
10 Jun 2012   #3

Windows 8 Core X64
 
 

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 System SpecsSystem Spec
.


Reply

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




Thread Tools



Similar help and support threads for2: xcopy - destination folder becomes a hidden system folder - why?
Thread Forum
Solved "Destination Folder Access Denied" when modifying Program Files folder General Discussion
File Name(s) Would Be Too Long for the Destination Folder General Discussion
Bluetooth destination folder trouble! Network & Sharing
Solved Virus made the windows folder a hidden system folder System Security
Windows 7 Destination Folder access denied Network & Sharing
Destination folder access denied General Discussion

Our Sites

Site Links

About Us

Find 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 05:35 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33