Click here to Skip to main content
15,885,719 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I Face a problem: Me and my friend using two pc and used WiFi Connection and used XAMPP Server. I need all data save one pc XAMPP Server using this connection. How to possible in php or C#? plz some one help me.
Posted
Comments
Sergey Alexandrovich Kryukov 3-Mar-15 10:42am    
It sounds to vague. What kind of data, for what purpose, on what events, and so on..?
—SA

1 solution

var fileName = "Sample.txt";   // File on Local Computer
var local = Path.Combine(@"C:\Temp", fileName);   //Path on Local Computer
var remote = Path.Combine(@"\\remote.machine\d$\", fileName);
File.Copy(local, remote);


@"\\remote.machine\d$\" should be your remote computer name and shared folder to copy the file to. Of course you will also need to change the file name and local path to match your needs.
 
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