Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to transfer .csv file from One Computer to another Computer. using c#, I googled it it but dint get any solution.

So please help me to solve this problem.

thank you
Sushil Bhat.
Posted
Updated 21-Jan-16 21:43pm
v4
Comments
aarif moh shaikh 22-Jan-16 0:35am    
what have you try yet?
Member 11859517 22-Jan-16 3:51am    
I dont know how to do this, I am new in c#.

1 solution

You can transfer files like below.

C#
File.Copy(SourceFile, DestinationFile);


DestinationFile should be with Uniform Naming Convention

Read here about Uniform Naming Convention

But you should have proper access and authorization to copy the files.

Hope this will work.
 
Share this answer
 
Comments
Member 11859517 22-Jan-16 3:47am    
thank you sir,

How to set the Destination path?

I din't get. please give any sample for this if you have. so I can clearly understand,

I am new in C#.

thank you
Sri Nivas (Vasu) 22-Jan-16 4:46am    
you can use path like \\SystemName\path\fileName.csv OR \\IP.Address\path\fileName.csv
Member 11859517 22-Jan-16 5:05am    
thank you very much sir,

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