Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog(); dlg.Filter = "All Image Files | *.*"; if (dlg.ShowDialog() == true) { image1.Source = new BitmapImage(new Uri(dlg.FileName, UriKind.Absolute)); string FileName = System.IO.Path.GetFileName(dlg.FileName); string a = "E:\\jaga\\Files\\" + FileName; string folderpath = "E:\\jaga\\Files\\"; System.IO.Directory.CreateDirectory(folderpath); textBox3.Text = a; if (!File.Exists(dlg.FileName)) { MessageBox.Show("File Not Exit"); } if (File.Exists(a)) { MessageBox.Show("File Already Exit"); } File.Copy(dlg.FileName, "E:\\jaga\\Files\\" + FileName); }
string a = @"E:\jaga\Files\" + FileName;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)