using System.IO;if (Directory.Exists(path)){ foreach (string f in Directory.GetFiles(path)) { // 리스트 박스나 기타 다른 반복된 작업 수행 }}위에서 파일 경로는 path에 지정하면 됨foreach 문에서 반복적으로 파일경로+파일명+파일확장자를 가져와서 처리할 수 있음
출처
http://redcarrot.tistory.com/37
댓글 없음 :
댓글 쓰기