Rename a bunch of files in a folder

4 visualizaciones (últimos 30 días)
Pedro
Pedro el 31 de Jul. de 2014
Respondida: Image Analyst el 31 de Jul. de 2014
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!

Respuestas (1)

Image Analyst
Image Analyst el 31 de Jul. de 2014
In the loop, use the movefile() function to rename the files.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by