C#에서 getdirectories 메소드를 사용하여 두 개의 특정 디렉토리를 가져오고 싶습니까? 내가 디렉토리 20120104,하지만 난 (20120104, 20130302)와 같은 두 개의 디렉토리를 얻고 싶다면 무엇을 얻을 수 위의 코드와 함께getdirectories 메소드를 사용하여 두 개의 특정 디렉토리를 가져오고 싶습니다.
DirectoryInfo sourcefolder = new DirectoryInfo(ConfigurationManager.AppSettings["SourceLocation"].ToString());s
DirectoryInfo[] sourceRreportSubfolders = sourcefolder.GetDirectories("20120104");
: 아래 하나의 디렉토리를 얻기위한 코드는?
두 번 해보시겠습니까? –
하지만 하위 폴더를 처리하기 위해이 sourceReportSubFolders를 반복하고 싶습니다. – user3477335