[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 540
  • Last Modified:

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.
0
fpoyavo
Asked:
fpoyavo
  • 6
  • 2
1 Solution
 
fpoyavoAuthor Commented:
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 ?
0
 
fpoyavoAuthor Commented:
As I understand there is something different between Net share A and B settings. What it could be ?
0
 
fpoyavoAuthor Commented:
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.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
fpoyavoAuthor Commented:
Anybody here ?
0
 
eternal_21Commented:
1. Are Share A and Share B on the same server?

2. Can you explore both shares in Windows Explorer before running your application?
0
 
fpoyavoAuthor Commented:
eternal,

1 No. These shares on two different servers (both Win 2000)
2 Yes.
0
 
fpoyavoAuthor Commented:
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.
0
 
eternal_21Commented:
fpoyavo,

  I am glad you solved your problem.  If you would like to have your points refunded, please create a post in Community Support http://www.experts-exchange.com/Community_Support/.
0
 
PAQ_ManCommented:
Question Closed, 500 points refunded.
PAQ_Man
Community Support Moderator
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now