Solved

xcopy can not create directory win7

Posted on 2010-09-01
7
609 Views
Last Modified: 2012-06-27
I wish to make a backup copy to a hard drive of my network files

First pass through it works fine and copies all directories and files.

Second pass I wish it only to copy new files (created after the file on the backup) and I use the below in a bat file

It comes back and says
 
Access Denied
Unable to create directory

g: is the backup drive and z: is the network drive


The batch file is below
*************************************
g:
cd\HDrive
xcopy z:\*.* /E /C /F /H /R /D /Y g:\HDrive

0
Comment
Question by:BobMc7771
  • 3
  • 2
  • 2
7 Comments
 
LVL 14

Expert Comment

by:Daniel Junges
ID: 33579939
Sounds like a permissions error. Can you do a plain COPY of a file to the win7 machine?
0
 

Author Comment

by:BobMc7771
ID: 33579977
The xcopy command works the first time through (when it copies to a blank disk) and it copies everything

It errors when I am asking it to copy only new or updated files and in that case overwrite the old files

If it was permissions I thought it would not let me do the first step (copy everything)

Am I thinking correctly on that?
0
 
LVL 14

Expert Comment

by:Daniel Junges
ID: 33580042
please try to copy with explorer one from the files that fails with xcopy
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:BobMc7771
ID: 33580147
I copied a file with explorer from the network to the hard drive intended as the backup and it worked fine

0
 
LVL 14

Expert Comment

by:Daniel Junges
ID: 33580236
hi BobMc7771,
i have tested the xcopy with you options and copied data into a network drive, it work fine.
Please try to make an sub-directory on you g: drive and copy it into this new dir
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 33580451
I would use the free Robocopy instead.

I hope this helps !
0
 
LVL 63

Accepted Solution

by:
SysExpert earned 500 total points
ID: 33580458
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now