@"...........\"
SaveFileDialog sfdBackUpPath = new SaveFileDialog(); sfdBackUpPath.Title = "Select File To Upload"; sfdBackUpPath.InitialDirectory = @"server2\"; DateTime DT = DateTime.Today; sfdBackUpPath.FileName = "FAMS_" + DT.ToString("yyyyMMdd"); sfdBackUpPath.Filter = "BAK files (*.*)|*.bak"; sfdBackUpPath.FilterIndex = 1; sfdBackUpPath.RestoreDirectory = true; if (sfdBackUpPath.ShowDialog() == DialogResult.OK) { if (sfdBackUpPath.FileName != "") { int index = sfdBackUpPath.FileName.IndexOf(".bak"); this.txtFile.Text = sfdBackUpPath.FileName.Remove(index, 4); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)