private void button1_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog2 = new OpenFileDialog(); openFileDialog2.InitialDirectory = @"C:\"; openFileDialog2.Title = "Browse Text Files"; openFileDialog2.CheckFileExists = true; openFileDialog2.CheckPathExists = true; if (openFileDialog2.ShowDialog() == DialogResult.OK) { textBox2.Text = openFileDialog2.FileName; } string filename,filex; filex = openFileDialog2.SafeFileName; filename = textBox2.Text; string dpath = @"D:\G\"+ filex ; File.Copy(filename, dpath );
true
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)