Xcopy cannot create directory

dougham

New member
Local time
9:43 AM
Messages
22
My backup cmd file has been in use since XP, through Vista to Win7. It has worked on a new laptop in Win7 ever since Win7 was released. Recently it has stopped working getting an access denied, cannot create directory message. It is xcopying my own folders, not the default documents etc.
In a cmd prompt, xcopy d:\data z:\ fails with the error, but copy d:\data z:\ doesn't.
Has MS patched xcopy recently? If so, how can I get back the earlier version?
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron 6400
OS
Windows Vista and 7
CPU
core Duo
Memory
2GB
Hard Drives
500GB
Hi dougham,

This sounds like a permissions issue. Please try this option:

Code:
xcopy d:\data z:\ /T /O

/T = create directory structure
/O = Copy file ownership and ACL information

Let us know if it works for you.

Regards,
Golden
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
Hi Golden

Using exactly as you suggest gives error "Access denied".

The strange thing I find is COPY works but XCOPY doesn't!

Cheers

Dougham
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron 6400
OS
Windows Vista and 7
CPU
core Duo
Memory
2GB
Hard Drives
500GB
Has your Z drive always been connected to your Win7 machine or have you recently connected your external Z drive to another machine?
 

My Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
The Z: drive is a network drive, not connected specifically to the Win7. My desktop and my wife's laptop all have a drive mapped to the NAS.
Again I come back to why copy works but not xcopy.
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron 6400
OS
Windows Vista and 7
CPU
core Duo
Memory
2GB
Hard Drives
500GB
And nothing has changed in your batch file between the times it worked and now that it doesn't?

I would verify you still have the proper permissions on the drive in the NAS as well.
 

My Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
No the batch file hasn't changed.
I am doing all the tests manually now
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron 6400
OS
Windows Vista and 7
CPU
core Duo
Memory
2GB
Hard Drives
500GB
Mmm. OK, I wonder if its as simple as trying this:

Code:
xcopy d:\data\*.* z:\ /T /O /I /Y /E

Note the *.* after d:\data\

Regards,
Golden
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
I've attached the output from another attempt. I copy OK, but can't xcopy.
 

Attachments

  • xcopy.jpg
    xcopy.jpg
    27.3 KB · Views: 80

My Computer

Computer Manufacturer/Model Number
Dell Inspiron 6400
OS
Windows Vista and 7
CPU
core Duo
Memory
2GB
Hard Drives
500GB
Hi,

Can you confirm that you can run xcopy from your wife's PC to the NAS?

Regards,
Golden
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
Back
Top