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?


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


My System SpecsSystem Spec
10 Jun 2012   #2
A Guy

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 10 Pro 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


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

Thread Tools

Similar help and support threads
Thread Forum
Folder Option problem - Hidden folder is not Hidden
Hello my name is kslim So I don't know when since my computer's hidden folder doesn't hidden anymore the folder should be in semitransparent but it doesn't look like it I've check the folder option and yet it didn't solve the problem :confused: Any help would be grateful for me Thanks
General Discussion
File name too long for destination folder?
Backing up an entire SSD to large HDD using a copy command. I received the following message indicating that 50,000 files are too long. Can anyone explain this situation and what I must do different?
General Discussion
"Destination Folder Access Denied" when modifying Program Files folder Destination Folder Access Denied ------------------------------------ You'll need to provide administrator permission to copy to this folder. <Folder/Sub-Folder Name> Date created: <Creation Date> ------------------------------------ Continue Skip
General Discussion
File Name(s) Would Be Too Long for the Destination Folder
Sorry if this is a repeat post but Iíve found so much about this issue that Iím bewildered & havenít found a Fix. Iím 65 & legally blind so searching the net isnít as easy as it used to be. I have one of a kind Family pics that if lost are gone forever so I back them up on 2 ext HDís in case 1...
General Discussion
Virus made the windows folder a hidden system folder
I got a virus on my pc, and the windows foulder became a hidden system foulder I then scanned it with norton, it removed the virus, and now it wants me to reboot, is it safe to reboot?
System Security
Destination folder access denied
hi All, Have a problem moving files from my laptop to my desktop. They are on a Homegroup, both running Win 7. When I try copying files from my laptop to my desktop, and I initiate this on the laptop, I get an error saying "Destination folder access denied. You need permission to perform this...
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 04:33.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App