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