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!