Renaming file names using matlab
2 views (last 30 days)
Show older comments
alpedhuez on 28 May 2020
Commented: alpedhuez on 6 Jun 2020
I have seen the page
I have a folder A with files
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
Abhisek Pradhan on 4 Jun 2020
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.
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!