private void btn_ChooseFile_Click(object sender, EventArgs e) { OpenFileDialog openFile = new OpenFileDialog(); openFile.ShowDialog(); textBox1.Text = openFile.FileName; filename = textBox1.Text; } private void btn_Copy_Click(object sender, EventArgs e) { copy(); } public void copy() { string sourceFileName; string backup; try { sourceFileName = Path.GetFileName(filename); File.Copy(Path.Combine(filename, sourceFileName), Path.Combine(textBox3.Text, sourceFileName),true); } catch { MessageBox.Show("File Not Found"); } }
\\10.29.80.123\newFolder
string path = "\\\\10.29.80.123\\newFolder";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)