microsoft/PowerToys

[PowerRename] Allow for padding prefix/suffix

Open

#4,080 opened on Jun 5, 2020

View on GitHub
 (1 comment) (1 reaction) (0 assignees)C# (7,978 forks)batch import
Help WantedIdea-EnhancementProduct-PowerRename

Repository metrics

Stars
 (133,154 stars)
PR merge metrics
 (Avg merge 14d 20h) (117 merged PRs in 30d)

Description

Summary of the new feature/enhancement

Allow for padding a filename with a character(s) to a certain number of total characters.

I often need to rename a large number of image files which are named as UPC/PLU codes. The existing file names are variable length and I need to left pad the file names with 0's to 13 digits. For example I may have the following file names: 1234.bmp 123.bmp 1234567890.bmp

The result after the batch rename would need to be: 0000000001234.bmp 0000000000123.bmp 0001234567890.bmp

Contributor guide