?
Solved

Copy files

Posted on 2005-02-26
10
Medium Priority
?
539 Views
Last Modified: 2010-04-16
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
Comment
Question by:fpoyavo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
10 Comments
 
LVL 1

Author Comment

by:fpoyavo
ID: 13411848
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
 
LVL 1

Author Comment

by:fpoyavo
ID: 13412157
As I understand there is something different between Net share A and B settings. What it could be ?
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 13412183
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Author Comment

by:fpoyavo
ID: 13412230
Anybody here ?
0
 
LVL 10

Expert Comment

by:eternal_21
ID: 13412356
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
 
LVL 1

Author Comment

by:fpoyavo
ID: 13412511
eternal,

1 No. These shares on two different servers (both Win 2000)
2 Yes.
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 13412544
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
 
LVL 10

Expert Comment

by:eternal_21
ID: 13426212
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
 

Accepted Solution

by:
PAQ_Man earned 0 total points
ID: 13640084
Question Closed, 500 points refunded.
PAQ_Man
Community Support Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question