[Scilab-users] find all files of specific type on hard drive

P M p.muehlmann at gmail.com
Mon Sep 27 16:50:47 CEST 2021


Dear All,

I need to find and list all files of a specific type on my hard
drive....How to do that in the most elegant way?

E.g.:

- find all *.txt files in "D:\"
- also find all '*.txt' files in each sub - directory, sub-sub-directory,
..etc
- create a list that stores the absolute path names to the *.txt files.

I am aware of
- dir
- findfiles
- listfiles
- ls

But they only seem to list the files in a dedicated folder.

Is there a function, that also searches all sub-folders automatically?

Thank you,
Philipp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210927/c400f8ba/attachment.htm>


More information about the users mailing list