Windows 7 Forums


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

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

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

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

 Xcopy cannot create directory problems?



Thread Tools



Similar help and support threads for: Xcopy cannot create directory
Thread Forum
Symlinker - Create Symlink, Hardlinks, And Directory Junctions via GUI Software
File directory: Many directory bear the same name after hd replacement Performance & Maintenance
help me create directory name aliases please Customization
Create a directory on startup with date i.e. 12-03-2012 Backup and Restore
Replace files in multiple directory, from a single directory General Discussion


All times are GMT -5. The time now is 06:25 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

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