?
Solved

how to copy files across network.....

Posted on 2003-03-14
3
Medium Priority
?
203 Views
Last Modified: 2010-04-01
I am developing a backup application. I need to copy files across network.
I tried using SHFileOperation. It doesn't work. It gives "bad user or password"
messagebox.
0
Comment
Question by:vads
[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
  • 2
3 Comments
 
LVL 6

Expert Comment

by:Mafalda
ID: 8135802
My comment is general but terminology is MS.
First you need to make sure that the program can access the target directories. the easiest way to do it is grant the application network rights, e.g. by using a user from the  the admins account or better the backup-operators group - yes there is such group.
You can alternately create all the target directories as shared directories thus any user running the program will be able to read/write the files.
It depends on you needs and desires.

If you need to access user directories for backup better create a backup-operator user account on the server and run the program using that account.
 
0
 

Author Comment

by:vads
ID: 8141536
I want to know which API to use for doing copy operation across network. How to specify the user name and password for accessing other computers?
0
 
LVL 6

Accepted Solution

by:
Mafalda earned 60 total points
ID: 8141996
0

Featured Post

Independent Software Vendors: 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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

771 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