フィルターのクリア

renaming mat and subdirectories

1 回表示 (過去 30 日間)
joseph Frank
joseph Frank 2011 年 9 月 3 日
Thousands of files and subdirectories contain as part of their names a wrong name "Naic" that I want to change to "Trace". Is it possible to do in an easy way. i.e is it possible to replace a name in thousands of files and subdirectories easily?
  2 件のコメント
Rick Rosson
Rick Rosson 2011 年 9 月 3 日
Are all of these files and subdirectories stored in one top-level parent directory?
joseph Frank
joseph Frank 2011 年 9 月 3 日
yes

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

回答 (2 件)

Walter Roberson
Walter Roberson 2011 年 9 月 3 日
See the user contribution renamefile

Rick Rosson
Rick Rosson 2011 年 9 月 3 日
Please take a look at the following functions:
>> doc genpath
>> doc dir
>> doc movefile
>> doc regexprep
I think you can create a script to do what you are asking using these functions.
HTH.
Rick

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by