How can I add an extension to all files in a folder?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can I add an extension to all files in a folder?
The current filetype is simply "File"
For every IM001 to IM195 file, I want to add the extension .nii
I have several hundred to several thousands of "files" in each folder, and this is just one folder.
Is there a script I can try using to do this?
Thanks!!
0 commentaires
Réponses (1)
Cris LaPierre
le 5 Jan 2021
Modifié(e) : Cris LaPierre
le 5 Jan 2021
4 commentaires
Stephen23
le 5 Jan 2021
@Cris LaPierre: surely the overloaded string plus operation does not require the superfluous square brackets?
Cris LaPierre
le 5 Jan 2021
True, it doesn't. I'd intilially written it without the plus and using single quotes, which does, but then saw the user has R2020a so switched to plus and double quotes. Just overlooked removing the square brackets.
Voir également
Catégories
En savoir plus sur File Operations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!