1. 程式人生 > 其它 >C# 建立資料夾

C# 建立資料夾

技術標籤:C#建立資料夾

string subPath = "A:" + "//" + DateTime.Now.ToString("yyyyMMdd") + "//" + "123";//存放jpg圖片
if (System.IO.Directory.Exists(subPath) == false)
{
  //建立pic資料夾
   System.IO.Directory.CreateDirectory(subPath);
}