Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Windows VB.NET
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 2:10am
Edited 6-Feb-13 2:58am
OriginalGriff at 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 at 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 at 8-Oct-13 5:28am
i get error "Logon failure: unknown user name or bad password."
pls help me in this
TheOtherCPian at 7-Feb-13 0:57am
You can use the same method to copy files over a LAN. See
H.Brydon at 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
0 OriginalGriff 375
1 Sergey Alexandrovich Kryukov 329
2 CPallini 260
3 DamithSL 214
4 Maciej Los 197
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115

Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 6 Feb 2013
Copyright © CodeProject, 1999-2014
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