%@ Page Language="C#" AutoEventWireup="true" %> <% string valueControl = Request.QueryString["ValueControl"]; string fileName = Request.QueryString["FileName"]; string receivePath = Request.QueryString["ReceivePath"]; string guid = Request.QueryString["Guid"]; string path = Server.MapPath("~/Upload/"); string filePath = path + "DHtmlxVault\\" + guid + fileName; string receiveFileName = null; if (System.IO.File.Exists(filePath)) { //如果文件存在,那么对文件进行移动 if (!System.IO.Directory.Exists(path + receivePath + "\\")) { System.IO.Directory.CreateDirectory(path + receivePath + "\\"); } var file = new System.IO.FileInfo(filePath); receiveFileName = DateTime.Now.ToString("yyyyMMddHHmmss") + fileName; System.IO.File.Move(filePath, path + receivePath + "\\" + receiveFileName); } %>