How to rename multiple file in a folder.
Mostrar comentarios más antiguos
I need to alter a heap of file names in a folder.
For instance:
2015_SUBJECT1^TEST_Upper_tag_CLEAR_30_1.PAR
2014_SUBJECT2^TEST_Lower_tag_1_OPEN_50_1.PAR
I need to get rid of the first 5 digits, the last 2 digits and all references of '^TEST', 'CLEAR' and 'OPEN'.
Note that in the folder there are two types of files (i.e. .PAR and .REC) with the same names that all need to be changed.
Help is much appreciated!
Respuestas (2)
Walter Roberson
el 22 de En. de 2016
0 votos
Is it correct that for '2015_SUBJECT1^TEST_Upper_tag_CLEAR_30_1.PAR' you would want the result '_SUBJECT^_Upper_tag__3_.PAR' ?
3 comentarios
Fiona
el 22 de Feb. de 2016
Walter Roberson
el 22 de Feb. de 2016
That looks more like you want to get rid of the first 4 digits than the first 5 ? The fifth digit would be the "1" after "SUBJECT"
Fiona
el 6 de Mzo. de 2016
jonathan
el 7 de Oct. de 2017
0 votos
This is a great article. You can use this technique. Beside this- I have a software for bulk rename. My software works with all platform. For checking my software go to google.com and type- BatchRenameFiles Tool. Check the first result.
Categorías
Más información sobre Whos en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!