How to copy data or file from one computer to local server using c#.net windows application?
i have tried this code but not coping.
string ipAddress = txtIP.Text;
//int port = int.Parse(txtPort.Text);
for (int i = 0; i < arrayList.Count; i++)
{
using (Ionic.Zip.ZipFile zip = new Ionic.Zip.ZipFile())
{
zip.AddDirectory(arrayList[i].ToString());
//zip.Save(@"D:\abc" + "_" + (i + 1) + ".zip");
zip.Save(@"D:\abc" + "_" + (i + 1) + ".zip");
fileName = @"D:\abc" + "_" + (i + 1) + ".zip";
File.Copy(fileName, txtIP.Text + "shared");
MessageBox.Show("Files zipped");
}
}
Please help me.
Thanks in Advance.