Hello,
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.
my code:-
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.
How to resolve this issue?
Thanks in Advance.
Ankit Agarwal
Software Engineer


Manas MohapatraRank #182 · 13.2K reputationPosted Dec 27, 2016, 11:41 PM EST
Ankit AgarwalRank #4,422 · 344 reputationPosted Dec 28, 2016, 12:12 AM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 28, 2016, 12:28 AM EST
Ankit AgarwalRank #4,422 · 344 reputationPosted Dec 28, 2016, 12:37 AM EST
Imtiyaz AnsariRank #1,031 · 1.9K reputationPosted Dec 28, 2016, 3:36 AM EST
Ankit AgarwalRank #4,422 · 344 reputationPosted Dec 28, 2016, 3:53 AM EST