private void baseButton2_Click_1(object sender, EventArgs e) { //找到EXCEL模板文件 String sourceFile = System.Environment.CurrentDirectory + "\\Templates\\客户期初库存导入模板.xls"; String path = ""; path = FileUtil.BrowseFolder("请选择保存模板的位置"); if (String.IsNullOrEmpty(path)) { return; } String toPath = path + "\\客户期初库存导入模板.xls"; System.IO.File.Copy(sourceFile, toPath, true); GlobalMessageBox.Show("模板保存" + toPath + "!"); }