SVN-Revision: r775
This commit is contained in:
tdx
2025-06-24 02:02:27 +00:00
parent e14d5798e8
commit e4456a69b0
@@ -588,11 +588,10 @@ namespace Lskj.Control.Model
string fileTitle = szName[szName.Length - 1]; string fileTitle = szName[szName.Length - 1];
//设置文件存放路径 //设置文件存放路径
string DownloadFileDirectory = string.Format("{0}\\{1}", Application.StartupPath, "RightDownloadFile"); string DownloadFileDirectory = string.Format("{0}\\{1}", Application.StartupPath, "RightDownloadFile");
if (Directory.Exists(DownloadFileDirectory)) if (!Directory.Exists(DownloadFileDirectory))
{ {
Directory.Delete(DownloadFileDirectory, true); Directory.CreateDirectory(DownloadFileDirectory);
} }
Directory.CreateDirectory(DownloadFileDirectory);
DownloadFileDirectory = string.Format("{0}\\{1}", DownloadFileDirectory, fileTitle); DownloadFileDirectory = string.Format("{0}\\{1}", DownloadFileDirectory, fileTitle);
FrmDownload frm = new FrmDownload(url, fileTitle, DownloadFileDirectory, true, false); FrmDownload frm = new FrmDownload(url, fileTitle, DownloadFileDirectory, true, false);