Click here to Skip to main content
13,005,823 members (88,855 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi all

Please tell me how to copy perticuler file at 2 different system.
means while coping a file one copy should be in system A and one copy at system B

Both the systems are connected through LAN and all other features including OS and software installed are same for both...

Thank you
Posted 6-Feb-13 1:10am
Updated 6-Feb-13 1:58am
OriginalGriff 6-Feb-13 7:42am
Exactly how you can do that depends on a lot of factors - none of which you have even mentioned.
Where are the computers, how are they connected, can you run software on both?
Use the "Improve question" widget to edit your question and provide better information.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Give the copy command twice: once to copy the file to location A and once to copy it to location B.

File.Copy("SourceFilePath", "DestinationAPath", True)
File.Copy("SourceFilePath", "DestinationBPath", True)
H.Brydon 6-Feb-13 13:38pm
The OP asked about how to copy files between different systems. Your code displays how to do it on one system.
Usha Muhunthan 8-Oct-13 5:28am
i get error "Logon failure: unknown user name or bad password."

pls help me in this
TheOtherCPian 7-Feb-13 0:57am
You can use the same method to copy files over a LAN. See
H.Brydon 7-Feb-13 12:54pm
Ummm yeah but the device mapping part was left out.

Q: How do you send a rocket to the moon?
A: Push the "ignition" button.

This answer, while quite correct, leaves out the important parts and gives the (trivial) final step.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 6 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100