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 cannot create directory


15 Feb 2012   #1

Windows Vista and 7
 
 
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 SpecsSystem Spec
.

15 Feb 2012   #2

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64 Ubuntu 12.04 LTS Tri-Boot
 
 

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 SpecsSystem Spec
15 Feb 2012   #3

Windows Vista and 7
 
 

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


15 Feb 2012   #4

XP / Win7 x64 Pro
 
 

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 SpecsSystem Spec
15 Feb 2012   #5

Windows Vista and 7
 
 

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 SpecsSystem Spec
15 Feb 2012   #6

XP / Win7 x64 Pro
 
 

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 SpecsSystem Spec
16 Feb 2012   #7

Windows Vista and 7
 
 

No the batch file hasn't changed.
I am doing all the tests manually now
My System SpecsSystem Spec
16 Feb 2012   #8

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64 Ubuntu 12.04 LTS Tri-Boot
 
 

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 SpecsSystem Spec
23 Feb 2012   #9

Windows Vista and 7
 
 

I've attached the output from another attempt. I copy OK, but can't xcopy.


Attached Thumbnails
Xcopy cannot create directory-xcopy.jpg  
My System SpecsSystem Spec
23 Feb 2012   #10

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64 Ubuntu 12.04 LTS Tri-Boot
 
 

Hi,

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

Regards,
Golden
My System SpecsSystem Spec
Reply

 Xcopy cannot create directory




Thread Tools




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:53 AM.
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