List_fileList = new List (); List _dirList = new List (); private void DirSearch(string sDir, string extName) { try { foreach (string f in Directory.GetFiles(sDir, extName)) _fileList.Add(f); foreach (string d in Directory.GetDirectories(sDir)) { _dirList.Add(d); DirSearch(d, extName); } } catch (Exception excpt) { MessageBox.Show(excpt.Message); } }
댓글 없음:
댓글 쓰기