小编use*_*030的帖子

在WPF中创建子目录?

string path1 = @"C:\temp\";
string path2 = "";

// Create directory temp if it doesn't exist
if (!Directory.Exists(path1))
{
    Directory.CreateDirectory(path1);
}
Run Code Online (Sandbox Code Playgroud)

我创建了上面的目录temp,但我不知道如何创建子目录(如temp1)temp

c# directory subdirectory

3
推荐指数
1
解决办法
6735
查看次数

标签 统计

c# ×1

directory ×1

subdirectory ×1