private static void Copying(bool bTipSuccess) { try { string strDefaultPathCopy = PropertyUtil.GetValue(ZhiFuChuan.strPathCopy); if (!string.IsNullOrEmpty(strDefaultPathCopy) && !Directory.Exists(strDefaultPathCopy)) { Directory.CreateDirectory(strDefaultPathCopy); } if (string.IsNullOrEmpty(strDefaultPathCopy) || !Directory.Exists(strDefaultPathCopy)) { strDefaultPathCopy = ZhiFuChuan.strDefaultPathCopy; PropertyUtil.SetValue(ZhiFuChuan.strPathCopy, strDefaultPathCopy); } string path = strDefaultPathCopy + @"\" + dateTimeNow.ToString(ZhiFuChuan.strDateTimeFormat) + "-" + PropertyUtil.GetValue("MAIN_VER") + "-" + ZhiFuChuan.strDateBaseZipName; strDefaultPathCopy = path + @"\" + dateTimeNow.ToString(ZhiFuChuan.strDateTimeFormat) + "-" + PropertyUtil.GetValue("MAIN_VER") + "-" + ZhiFuChuan.strDateBaseName; File.Copy(strSrcPathCopy, strDefaultPathCopy, true); if (ZipUtil.Zip(path, path + ".zip", null)) { if (Directory.Exists(path)) { Directory.Delete(path, true); } AES_Crypt_File.EncryptFile(path + ".zip"); } else { if (Directory.Exists(path)) { Directory.Delete(path, true); } MessageManager.ShowMsgBox("INP-442215"); return; } if (bTipSuccess) { MessageManager.ShowMsgBox("SJBF-000001", new string[] { path + ".zip" }); } } catch (BaseException exception) { _Loger.Error(exception.Message); ExceptionHandler.HandleError(exception); } catch (Exception exception2) { _Loger.Error(exception2.Message); ExceptionHandler.HandleError(exception2); } }