Solved

Sharing Violation Halts Copying of Files

Posted on 2004-10-06
11
5,837 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
LVL 1

Author Comment

by:s1m0ne
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
s1m0ne

Pesky microsoft installer!

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

Cheers

JamesDS
0
 
LVL 1

Author Comment

by:s1m0ne
Comment Utility
JamesDS,

Works great!

Thanks,

s1m0ne
0
 
LVL 16

Expert Comment

by:JamesDS
Comment Utility
s1m0ne

Welcome, glad to help
Cheers

JamesDS
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Adprep 12 44
Recreate New ADC 1 270
cant not receive emails, due to low disk space. 16 250
Corrupted W2K  serverregistry 2 144
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…
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

10 Experts available now in Live!

Get 1:1 Help Now