1  string dict = @"d:\估价报告\";
 2  if (!Directory.Exists(dict))
 3   {
 4       Directory.CreateDirectory(dict); //创建文件夹
 5   }
 6   string subFolder = "subfolder";
 7   string pathString = System.IO.Path.Combine(dict, subFolder);
 8   if (!System.IO.File.Exists(pathString))
 9    {
10       Directory.CreateDirectory(pathString); //创建子文件夹
11    }

 

 

 

        

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案