Solved

Sharing Violation Halts Copying of Files

Posted on 2004-10-06
11
5,849 Views
Last Modified: 2007-12-19
Hello,

Sometimes when I copy a large folder from one computer to another, I get a sharing violation error on one of the files. Then the copying stops. It is likely that the file yielding the sharing violation is one I can do without. But how can I perform the copy job in such a way as to cause all files than can be copied (i.e. no sharing violation) to be copied?

Thanks in advance,

s1m0ne

P.S. Sometimes the source computer is a Windows NT machine, in case that makes a difference.

0
Comment
Question by:s1m0ne
11 Comments
 
LVL 16

Expert Comment

by:JamesDS
ID: 12235851
s1m0ne
Take a look at ROBOCOPY from the resource kit. It can be set to retry a number of times after which it will ignore the occasional failure and continue.


Cheers

JamesDS
0
 
LVL 6

Expert Comment

by:Scott_Willcocks
ID: 12236309
also you will probably find that the file is being accessed by a service that is running in the background.

You may need to know what files are not copying over as you may need to goto into services and stop the associated service that is accessing the file.



you could also use xcopy  c:\folder\folder\*.* /E /H /R /Q /Z
0
 
LVL 3

Expert Comment

by:Arl
ID: 12236482
Hi,

Just a tought, are all your computers based on NTFS ?
When you say, large,how large is it ?

Into the folder you are actually willing to copy, is there any share files or folders ?
How depth is your folder, how many sub-folders ?
And is your folder on a server machine ?

Hope that can help.
0
 
LVL 1

Author Comment

by:s1m0ne
ID: 12594706
I couldn't find a resource kit CD. Is Robocopy downloadable?

Most computers are NTFS, but not all. The NT computer has an NTFS partition (close to 2 GB to be copied) and also a FAT partition (about 150 MB to be copied). In that partiticular case (although the question is more general as well) it is an old computer, and I am trying to copy the entire C$ share (minus the few files with the sharing violation) to a folder on a newer computer; the same for the D$ share.
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 12598199
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 1

Author Comment

by:s1m0ne
ID: 12598280
JamesDS,

Thanks for the link.

I noticed this: "Supported Operating Systems: Windows Server 2003, Windows XP"

Will this version of Robocopy work on Windows 2000 anyway, or is there another version for W2K?

Thanks,

s1m0ne
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 12598371
s1m0ne

This one works on all versions - and I think also addresses a bug with application of ACLs during copying of security information.

Cheers

JamesDS
0
 
LVL 1

Author Comment

by:s1m0ne
ID: 12598550
JamesDS,

I just downloaded rktools.exe from the link you gave me.

When I tried to install it, I got this error:

Windows Resource Kit Tools Setup Wizard: "This product requires Windows XP or a later version to have been installed."

Then after clicking OK, another window:

"Setup failed           The installation of the Windows Resource Kit Tools ended prematurely because of an error."

Any other ideas?

Thanks,

s1m0ne
0
 
LVL 16

Accepted Solution

by:
JamesDS earned 100 total points
ID: 12601536
s1m0ne

Pesky microsoft installer!

Try this
http://www.dynawell.com/support/ResKit/download/wntrobocopy.asp

Cheers

JamesDS
0
 
LVL 1

Author Comment

by:s1m0ne
ID: 12607552
JamesDS,

Works great!

Thanks,

s1m0ne
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 12612039
s1m0ne

Welcome, glad to help
Cheers

JamesDS
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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
The new Gmail Phishing Scam going around is surprising even the savviest of users with its sophisticated techniques. This attack comes as a nightmare trifecta for email filtering services; sent from a familiar contact, using authentic tone and verbi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

863 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

22 Experts available now in Live!

Get 1:1 Help Now