how to access a particular format files from a drive location?
조회 수: 5 (최근 30일)
이전 댓글 표시
hi.. In my D drive,many folders(app. 50 folders) are there.each having many formats of files.i need to access .zip files alone in each of the folders and move to separate folder..i am stuck here..
댓글 수: 0
답변 (2개)
David Sanchez
2013년 8월 28일
The following will return a struct containing the .zip files in the folder specified by path_to_zip_files:
my_zips = dir('path_to_zip_files\*.zip')
Then,
for k=1:numel(my_zips)
my_zips(k).name
end
returns the names of the .zip files recursively. Adapt the code to your needs.
David Sanchez
2013년 8월 28일
편집: Walter Roberson
2013년 9월 4일
try the function given in the following link for recursive search:
댓글 수: 8
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!