Link to home
Start Free TrialLog in
Avatar of fpoyavo
fpoyavoFlag for United States of America

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.
Avatar of fpoyavo
fpoyavo
Flag of United States of America image

ASKER

I also tried to map it manually and use Z:\myfolder as local to copy via app but still getting access is denied to "Z:\myfolder\mynewfile.pdf".

????What's wrong ?
Avatar of fpoyavo

ASKER

As I understand there is something different between Net share A and B settings. What it could be ?
Avatar of fpoyavo

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.
Avatar of fpoyavo

ASKER

Anybody here ?
Avatar of eternal_21
eternal_21

1. Are Share A and Share B on the same server?

2. Can you explore both shares in Windows Explorer before running your application?
Avatar of fpoyavo

ASKER

eternal,

1 No. These shares on two different servers (both Win 2000)
2 Yes.
Avatar of fpoyavo

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.
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/.
ASKER CERTIFIED SOLUTION
Avatar of PAQ_Man
PAQ_Man
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial