Click here to Skip to main content
16,019,764 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
both are password protected


When i use
VB
File.Copy("SourceFilePath", "DestinationAPath", True)
File.Copy("SourceFilePath", "DestinationBPath", True)



it shows Logon failure: unknown user name or bad password.


Help me
Thanks
Posted
Comments
RedDk 8-Oct-13 12:09pm    
This is a repost. Use the "Improve Question" next time. Instead of creating another question slightly altered.

http://www.codeproject.com/Questions/665072/Retrieve-images-from-database-and-display-in-list
Usha Muhunthan 9-Oct-13 1:19am    
Sorry, u dont have answer right?

1 solution

 
Share this answer
 
Comments
Usha Muhunthan 8-Oct-13 6:13am    
I referred the 2nd link. I am getting same error Logon failure: unknown user name or bad password.

error en counted in this line
For Each file__1 As String In Directory.GetFiles(sourcePath)
Usha Muhunthan 8-Oct-13 6:18am    
I tried For Each file__1 As String In Directory.GetFiles(Path.GetDirectoryName(sourcePath))
No use
Usha Muhunthan 9-Oct-13 1:20am    
I found the exact command and completed :)

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900