xiaowie
创建文件夹可通过Directory类的CreateDirectory方法来实现

格式为:Directory.CreateDirectory(“文件路径”);

String path=@“C:\Users\Administrator\Desktop\51zxw”;
If(Directory.exists(path))
{
Console.writeLine(“文佳夹以存在,无需创建”);
}
Else    
{
Directory.CreateDirectory(path);
Console.WriteLine(“创建成功”)
}

 

分类:

技术点:

相关文章:

  • 2021-11-04
  • 2021-08-12
  • 2021-11-06
  • 2021-11-06
  • 2021-11-20
  • 2021-12-13
  • 2021-10-12
  • 2019-10-26
猜你喜欢
  • 2021-12-01
  • 2021-12-21
  • 2021-12-23
  • 2021-10-19
  • 2021-12-21
  • 2021-12-21
相关资源
相似解决方案