| Windows 7: Xcopy cannot create directory |
15 Feb 2012
|
#1 | | |
Xcopy cannot create directory My backup cmd file has been in use since XP, through Vista to Windows 7. It has worked on a new laptop in Windows 7 ever since Windows 7 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 System Specs |
| System Manufacturer/Model Number Dell Inspiron 6400 OS Windows Vista and 7 CPU core Duo Memory 2GB Hard Drives 500GB |
15 Feb 2012
|
#2 | | Windows 7 Ultimate SP1 (x64) South Australia |
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 System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Golden Mk. I.3 OS Windows 7 Ultimate SP1 (x64) CPU Intel i7 860 @ 2.80 GHz Motherboard Gigabyte P55A-UD3R Rev.1. Award BIOS F13 Memory 16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24) Graphics Card EVGA NVidia GTX 560 1024MB Sound Card Realtek Integrated Monitor(s) Displays Dual Samsung SyncMaster 2494HS Screen Resolution 1920*1080 and 1920*1080 Keyboard Logitech G110 Mouse Logitech MX518 PSU Thermaltake ToughPower QFan 750W Case Thermaltake Element S VK60001W2Z Cooling Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans Hard Drives 1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
3*Samsung F1 SpinPoint 1TB in RAID5;
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0 Internet Speed Not fast enough!!! Antivirus MSE and Malwarebytes Pro Browser Chrome Version 25 Other Info Laptop: ASUS X54C, Intel Core i3-2330M @ 2.0Ghz, 4GB RAM, Intel HD on-board graphics, Windows 7 Professional SP1 (x64), LinuxMint 14 (x64), PepperMint 3 (x86) |
15 Feb 2012
|
#3 | | |
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 System Specs | | System Manufacturer/Model Number Dell Inspiron 6400 OS Windows Vista and 7 CPU core Duo Memory 2GB Hard Drives 500GB |
15 Feb 2012
|
#4 | | |
Has your Z drive always been connected to your Windows 7 machine or have you recently connected your external Z drive to another machine? | My System Specs | | OS XP / Win7 x64 Pro CPU Intel Quad-Core Q9450 @ 3.2GHz Motherboard Asus P5-E Memory 2x2GB GSkill DDR2 Graphics Card NVIDIA GeForce 8600 GTS (EVGA) Monitor(s) Displays Dell 2408WFP Screen Resolution 1920x1200 |
15 Feb 2012
|
#5 | | |
The Z: drive is a network drive, not connected specifically to the Windows 7. 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 System Specs | | System Manufacturer/Model Number Dell Inspiron 6400 OS Windows Vista and 7 CPU core Duo Memory 2GB Hard Drives 500GB |
15 Feb 2012
|
#6 | | |
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 System Specs | | OS XP / Win7 x64 Pro CPU Intel Quad-Core Q9450 @ 3.2GHz Motherboard Asus P5-E Memory 2x2GB GSkill DDR2 Graphics Card NVIDIA GeForce 8600 GTS (EVGA) Monitor(s) Displays Dell 2408WFP Screen Resolution 1920x1200 |
16 Feb 2012
|
#7 | | |
No the batch file hasn't changed.
I am doing all the tests manually now | My System Specs | | System Manufacturer/Model Number Dell Inspiron 6400 OS Windows Vista and 7 CPU core Duo Memory 2GB Hard Drives 500GB |
16 Feb 2012
|
#8 | | Windows 7 Ultimate SP1 (x64) South Australia |
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 System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Golden Mk. I.3 OS Windows 7 Ultimate SP1 (x64) CPU Intel i7 860 @ 2.80 GHz Motherboard Gigabyte P55A-UD3R Rev.1. Award BIOS F13 Memory 16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24) Graphics Card EVGA NVidia GTX 560 1024MB Sound Card Realtek Integrated Monitor(s) Displays Dual Samsung SyncMaster 2494HS Screen Resolution 1920*1080 and 1920*1080 Keyboard Logitech G110 Mouse Logitech MX518 PSU Thermaltake ToughPower QFan 750W Case Thermaltake Element S VK60001W2Z Cooling Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans Hard Drives 1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
3*Samsung F1 SpinPoint 1TB in RAID5;
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0 Internet Speed Not fast enough!!! Antivirus MSE and Malwarebytes Pro Browser Chrome Version 25 Other Info Laptop: ASUS X54C, Intel Core i3-2330M @ 2.0Ghz, 4GB RAM, Intel HD on-board graphics, Windows 7 Professional SP1 (x64), LinuxMint 14 (x64), PepperMint 3 (x86) |
23 Feb 2012
|
#9 | | |
I've attached the output from another attempt. I copy OK, but can't xcopy. | My System Specs | | System Manufacturer/Model Number Dell Inspiron 6400 OS Windows Vista and 7 CPU core Duo Memory 2GB Hard Drives 500GB |
23 Feb 2012
|
#10 | | Windows 7 Ultimate SP1 (x64) South Australia |
Hi,
Can you confirm that you can run xcopy from your wife's PC to the NAS?
Regards,
Golden | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Golden Mk. I.3 OS Windows 7 Ultimate SP1 (x64) CPU Intel i7 860 @ 2.80 GHz Motherboard Gigabyte P55A-UD3R Rev.1. Award BIOS F13 Memory 16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24) Graphics Card EVGA NVidia GTX 560 1024MB Sound Card Realtek Integrated Monitor(s) Displays Dual Samsung SyncMaster 2494HS Screen Resolution 1920*1080 and 1920*1080 Keyboard Logitech G110 Mouse Logitech MX518 PSU Thermaltake ToughPower QFan 750W Case Thermaltake Element S VK60001W2Z Cooling Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans Hard Drives 1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
3*Samsung F1 SpinPoint 1TB in RAID5;
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0 Internet Speed Not fast enough!!! Antivirus MSE and Malwarebytes Pro Browser Chrome Version 25 Other Info Laptop: ASUS X54C, Intel Core i3-2330M @ 2.0Ghz, 4GB RAM, Intel HD on-board graphics, Windows 7 Professional SP1 (x64), LinuxMint 14 (x64), PepperMint 3 (x86) Xcopy cannot create directory problems? All times are GMT -5. The time now is 06:25 PM. | |