Azzera filtri
Azzera filtri

renaming mat and subdirectories

1 visualizzazione (ultimi 30 giorni)
joseph Frank
joseph Frank il 3 Set 2011
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 Commenti
Rick Rosson
Rick Rosson il 3 Set 2011
Are all of these files and subdirectories stored in one top-level parent directory?

Accedi per commentare.

Risposte (2)

Walter Roberson
Walter Roberson il 3 Set 2011
See the user contribution renamefile

Rick Rosson
Rick Rosson il 3 Set 2011
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

Categorie

Scopri di più su Search Path in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by