확장명이 .dcm 인 파일을 검색하려면 파일 이름이나 파일 내용을 입력하십시오. 디렉토리에서 검색 할 수 있지만 드라이브에서 검색을 시도하면 디렉토리가 누락되었거나 참조를 어셈블하는 오류가 발생합니다.일반적으로 드라이브에서 .dcm 확장명의 파일 검색 C#
string startFolder = @"C:\";
// Take a snapshot of the file system.
System.IO.DriveInfo dir = new System.IO.DriveInfo(startFolder);
// This method assumes that the application has discovery permissions
// for all folders under the specified path.
IEnumerable<System.IO.FileInfo> fileList = dir.GetFiles("*.*", System.IO.
SearchOption.
AllDirectories);
제발 도와주세요. 감사! 폴더에 작동처럼
그냥 그것을 지적하고 싶어요 당신은' ".dcm *"'으로 당신의'searchPattern'을 변경할 수 있습니다 ''*. * ''대신''*. * "' –