OpenFileDialog op1 = new OpenFileDialog(); op1.Multiselect = true; op1.ShowDialog(); op1.Filter = "allfiles|*.txt"; textBox1.Text = op1.FileName; int count = 0; string[] FName; foreach (string s in op1.FileNames) { FName = s.Split('\\'); //FileInfo fInfo = new FileInfo(textBox1.Text); //fInfo.MoveTo(Macadd.Text); File.Copy(s, "\\\\100.3.10.11\\FileDump\\" + FName[FName.Length - 1]); count++; } MessageBox.Show(Convert.ToString(count) + " File Saved Successfully ");
string a; a = (Macadd.Text + ".txt"); File.Copy(s, "\\\\100.43.100.101\\FileDump\\" + a);//+ FName[FName.Length - 1]); count++; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)