how to access a particular format files from a drive location?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (2)
David Sanchez
le 28 Août 2013
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
le 28 Août 2013
Modifié(e) : Walter Roberson
le 4 Sep 2013
try the function given in the following link for recursive search:
8 commentaires
Voir également
Catégories
En savoir plus sur MATLAB Compiler dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!