private void CreatDir()
{
//检查是否存在文件夹
string subPath = "D:\\Test\\";
if (false == System.IO.Directory.Exists(subPath))
{
//创建文件夹
System.IO.Directory.CreateDirectory(subPath);
}
}
C# 22. 新建文件夹
最新推荐文章于 2024-08-07 11:00:04 发布