Remove leading characters in file names

Renames all files in a folder to remove one or more unwanted leading characters
70 Downloads
Updated 8 Sep 2015

View License

RemoveLeadingCharacters.m
Renames all files in a folder to remove one or more unwanted leading characters
Example:
03-song.mp3 is renamed to song.mp3 while anothersong.mp3 remains anothersong.mp3
MoveLeadingStrings.m
Renames all files in a folder to move a leading string to the back.
Example:
artist-song.mp3 is renamed to -song-artist.mp3

This could easily be rewritten to search for files recursively using Kelly Kearney's subdir.m.

Cite As

Sebastian Endrikat (2024). Remove leading characters in file names (https://www.mathworks.com/matlabcentral/fileexchange/52926-remove-leading-characters-in-file-names), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0