renaming mat and subdirectories
1 次查看(过去 30 天)
显示 更早的评论
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
2011-9-3
Are all of these files and subdirectories stored in one top-level parent directory?
回答(2 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!