C#创建临时文件夹方法


            #region 创建临时文件夹
            string strMapPath = Server.MapPath("~/");
            string strTempFilesPath = Path.Combine(strMapPath, "TempFilesPath");
            string tempFolder = Path.Combine(strTempFilesPath, Guid.NewGuid().ToString());
            if (Directory.Exists(tempFolder) == false)
                Directory.CreateDirectory(tempFolder);
            #endregion

posted @ 2017-09-22 18:58  亘古不变  阅读(2957)  评论(0编辑  收藏  举报