I want to search for an M file in all the folders of my PC.
I do not want to search in every folder individually.

1 件のコメント

Star Strider
Star Strider 2026 年 3 月 1 日
What operating system are you using?

サインインしてコメントする。

回答 (3 件)

Paul
Paul 2026 年 3 月 1 日

1 投票

The dir command can recursively search. I think for this question it would be
d = dir("C:\**\filetofind.m")
Walter Roberson
Walter Roberson 2026 年 3 月 1 日
編集済み: Walter Roberson 2026 年 3 月 1 日

1 投票

You could consider using command line tools
[status, result] = system('dir /s *FILENAMEGOESHERE*');
Image Analyst
Image Analyst 2026 年 3 月 1 日

0 投票

Try "Everything" by voidtools: https://www.voidtools.com/
It can give you nearly instant results on where files live. Not like the Windows search utility that takes forever.

カテゴリ

ヘルプ センター および File ExchangeEnvironment and Settings についてさらに検索

製品

リリース

R2025b

タグ

質問済み:

2026 年 3 月 1 日

編集済み:

2026 年 3 月 1 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by