多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``` FolderBrowserDialog fbdlg = new FolderBrowserDialog(); fbdlg.Description = "请选择文件路径"; if (fbdlg.ShowDialog() == DialogResult.OK) { string foldPath = fbdlg.SelectedPath; textBox1.Text = foldPath; return; DirectoryInfo theFolder = new DirectoryInfo(foldPath); FileInfo[] dirInfo = theFolder.GetFiles(); //遍历文件夹 foreach (FileInfo file in dirInfo) { MessageBox.Show(file.ToString()); } } ```