Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
2.25/5 (4 votes)
See more:
Hi,

I maintaining a particular file in my system, i want to transfer my file to another system, using its own IP address.

i want to put both server and client side code in same my system itself.


Kindly give me a code anybody, socket programming too.
Posted
Comments
Sandeep Mewara 24-Mar-11 5:15am    
Have you tried anything from your side?
Member 7744835 24-Mar-11 8:32am    
i already use the file.copy option, but it throwing an error as UnauthorizedAccessException .

can u able to tell because of what reason, this error throwing?

Did u have any other idea, please share it
Member 7744835 24-Mar-11 8:33am    
i try to use socket application too, that too throwing an error

All you have to do is use File.Copy. Of course, you need the appropriate permissions on the other machine to copy a file to a shared folder.
 
Share this answer
 
Comments
Sandeep Mewara 24-Mar-11 8:44am    
OP posted few comments to my comment on question.
 
Share this answer
 

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