1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using HNWD.Pregrant.WebService;
- using HNWD.Pregrant.Model;
- using System.Text;
- using HNWD.Pregrant.DataAccess;
- using HNWD.Pregrant.Common;
- using HNWD.Pregrant.BusinessLogic;
- using System.IO;
- namespace HNWD.Pregrant.WebService.MgrCSharp
- {
- public partial class GetWD_DataBaseBackup : PageBase
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string TempPath = this.MapPath(HttpContext.Current.Request.ApplicationPath.ToString());
- string TempFile = @"\DataBaseBK\WD_IPCALL" + DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss") + ".bak";
- if(Directory.Exists(TempPath))
- {
- Directory.CreateDirectory(TempPath);
- }
- new DataBaseBackUpDataAccess().BackUpDataBase(TempPath + TempFile);
- if(File.Exists(TempPath + TempFile))
- {
- Response.Redirect(TempFile);
- }
- }
- }
- }
|