Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access denied ! Source file may be in use ?

Status
Not open for further replies.

vrcatherine

IS-IT--Management
Feb 2, 2003
215
US


Whenever i'm trying to copy some folder (which is huge around 1GB), the copy command fails in-between saying that

Access Denied
"abc.xls" may be in use


How can i get skip this message and ask the windows copy to go forward. (skipping those used files)

Is there any way we can set in the windows system ?


--Thanks
Cathy
 
You could use a vbscript to execute your copy and tell it to use "One Error Resume Next"

Give some more details ont he job you need to do and I can help with some sample code.

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
It is possible that even though the excel file is closed on the client side, the server may not have closed the file on its side. Right click on My Computer wherever the file resides. Select Manage. Expand the Shared Folders tree. Select Open Files. In the right pane may be the excel file that is giving you all the problems. Close the file from there and the copy should go fine. I hope this helps.
 


Mark,


I had recently hooked a Maxtor Onetouch backup drive 160GB to one of the server.

And i'm trying to copy some of the files to that drive.
I did the normal widows copy (right click copy / paste) and it fails in between. (could not copy abc.xls file may be in use).


I want the whole copy to proceed irrespective of even it finds some files open during the copy command.



----cathy
 


tdenitti,


I'm copying this files on a windows 2000 server. And as you said i right-clicked the Mycomputer=>manage=> shared files


I did not see that ABC.xls files as open.


Any ideas !!!!!!!!!1


--Cathy





 
Get yourself a copy of the Windows Resource Kit tool RoboCopy. It has the ability to keep on going and does a great job when scripted to.

I have a customer with an External USB drive that we back up data to. RoboCopy has some advanced switches so I can specify to only copy files that are new or have changed. That way the copy takes a lot less time.

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
robocopy is nice in that you can set how many times it retries to copy a file across, only copy across newer/changed files and even resume where it left off in case there was problem in the copying process.

Also, why not just use ntbackup to copy all the files to your external HD and then use restore to take the files out.

Generally speaking, open files are in an active state which is why you need a special module to backup them up usually.



Claudius (What certifications??)
 


I will try that and let you guys know.


--thanks
cathy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top