C# 创建多级文件夹示例 string str = ""; for (int i = 0; i < j; i++) { str = str + "\新建文件夹" ; } System.IO.Directory.CreateDirectory(@"F:" + str);