필터 지우기
필터 지우기

Renaming file names using matlab

조회 수: 1 (최근 30일)
alpedhuez
alpedhuez 2020년 5월 28일
댓글: alpedhuez 2020년 6월 6일
I have seen the page
I have a folder A with files
Report.txt
Report.txt
Report.txt
I would like to rename them as
Report 1 (2020_05_31).txt
Report 2 (2020_06_01).txt
Report 3 (2020_06_02).txt
Please advise.

답변 (1개)

Abhisek Pradhan
Abhisek Pradhan 2020년 6월 4일
Try to concat "1 (2020_05_31)" part by modifying it programmatically as per the need. Store it as a new name and use movefile to rename it.
Refer the following link for as a reference. Consider adding fullfile path inside movefile function.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by