Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
some time Two type error occur .
1.Path/File access error
2.Permission denied .

coding line
VB
FileCopy (s_path & LCase(Trim(Scan_mover.List1.List(J)))), (es_img & "\" & Trim(LCase(Scan_mover.List1.List(J))))


some times error Permission denied occur next few minutes file copy no error in same file why error occur ? pls help me sir
Posted
Updated 14-May-14 20:10pm
v2

Can I tell you the usual reason it occurs as a programmer because you have the file open somewhere on your screen or some program looking it :-)

The problem magically fixes itself when you close the open file.
 
Share this answer
 
v3
Comments
CHill60 15-May-14 11:53am    
Spot on! ... Or they haven't waited for the previous copy to finish. 5'd
The error says it all.
1. Path/File Access Error
2. Permission Denied - this is the main reason why you cannot access the file. You don't have any permission to access it.

Make sure you have the appropriate permission for you to copy the file.
 
Share this answer
 
Comments
Member 10420597 19-May-14 0:05am    
but next few minutes copy of the same file ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900