Rename a bunch of files in a folder
5 views (last 30 days)
Show older comments
Hi, I have more than 300 files in each folder and I would like to rename the files at once. I am new to matlab programming and got stuck here. The original file names is something like this "filename20090101" and i would like it to be something like "filename_2009_01_01" those are daily files so after the first month it will be "filename_2009_02_01" and so on. Any help would be appreciated. Thank You!
0 Comments
Answers (1)
Image Analyst
on 31 Jul 2014
In the loop, use the movefile() function to rename the files.
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing 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!