DialogResult result = openDialog1.ShowDialog(); string fullpath = openDialog1.FileName; string extension = Path.GetExtension(fullpath); File.Copy(fullpath, @"C:\Users\Acer\Documents\Visual Studio 2010\Projects\sqlprocedure\sqlprocedure\Resources\Document\" + Filename + extension); What I have tried: I Am try with this but it take same file name same. I also cant get the path where copy file location File is save please help me.
rfilename = openDialog1.InitialDirectory + openDialog1.FileName;
FileInfo file = new FileInfo("c:\test.txt"); file.Rename("test2.txt");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)