fpoyavo
asked on
Copy files
Hi Experts,
I have win app which successufully copies any files from local drive to net share A but I am having problem to copy PDF files
only to net share B. The code is the same for both and almost identical except file filter . I am getting "access is denied to : share B" error message.
I have checked security and I can read write files (using my user account) in \\share B\myfolder with no problem manually.
Thank you.
I have win app which successufully copies any files from local drive to net share A but I am having problem to copy PDF files
only to net share B. The code is the same for both and almost identical except file filter . I am getting "access is denied to : share B" error message.
I have checked security and I can read write files (using my user account) in \\share B\myfolder with no problem manually.
Thank you.
ASKER
As I understand there is something different between Net share A and B settings. What it could be ?
ASKER
Here is what I do :
1 check if local file size > 0
2 check if Net Share exists
3 copy file
I tried File.Copy and fileinfo.CopyTo but same result.
1 check if local file size > 0
2 check if Net Share exists
3 copy file
I tried File.Copy and fileinfo.CopyTo but same result.
ASKER
Anybody here ?
1. Are Share A and Share B on the same server?
2. Can you explore both shares in Windows Explorer before running your application?
2. Can you explore both shares in Windows Explorer before running your application?
ASKER
eternal,
1 No. These shares on two different servers (both Win 2000)
2 Yes.
1 No. These shares on two different servers (both Win 2000)
2 Yes.
ASKER
Hi to All,
I have found a diffrence. :) I had to add my account to write to this floder via Computer Management >> Shares
Then it started to do the job.
Thank you. Please close this question.
I have found a diffrence. :) I had to add my account to write to this floder via Computer Management >> Shares
Then it started to do the job.
Thank you. Please close this question.
fpoyavo,
I am glad you solved your problem. If you would like to have your points refunded, please create a post in Community Support https://www.experts-exchange.com/Community_Support/.
I am glad you solved your problem. If you would like to have your points refunded, please create a post in Community Support https://www.experts-exchange.com/Community_Support/.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
????What's wrong ?