필터 지우기
필터 지우기

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 CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by