private void btnExelFile_Click(object sender, EventArgs e) { string CAPDEExcelFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "CAPDE.xls"); string file = common.SaveFileDrialog("Excel | *.xls"); if (!String.IsNullOrEmpty(file)) { File.Copy(CAPDEExcelFile, file); MessageBox.Show("O arquivo Lote - Servidores foi transferido com sucesso", "Lote - Servidor", MessageBoxButtons.OK, MessageBoxIcon.Information); } }