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

micgiver

New member
Local time
5:49 AM
Messages
3
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

OS
Windows 7 64bit
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

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top