////////选取目录 string debugPath = null; // 选取目录 FolderBrowserDialog fbd = new FolderBrowserDialog(); fbd.ShowDialog(); debugPath = fbd.SelectedPath; /////////选取文件 OpenFileDialog ofd = new OpenFileDialog(); ofd.ShowDialog(); string xmlPath = ofd.FileName; //路径 string fileName = Path.GetFileName(xmlPath);//文件名 // MessageBox.Show(fileName);
浙公网安备 33010602011771号