Announcement

Collapse
No announcement yet.

Auto zero-prefix while batch-rename with counting

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Supported Auto zero-prefix while batch-rename with counting

    Hi,

    i suggest to add an automatic zero-prefix while batch-rename with counting.

    current situation:

    File names before:
    Code:
    File A.txt
    File B.txt
    File C.txt
    File D.txt
    File E.txt
    File F.txt
    File G.txt
    File H.txt
    File I.txt
    File J.txt
    File K.txt
    File L.txt
    File M.txt
    options for rename:
    Name: # - $N
    Start-Counter: 1; increment: 1
    File name result:
    Code:
    1 - File A.txt
    2 - File B.txt
    3 - File C.txt
    4 - File D.txt
    5 - File E.txt
    6 - File F.txt
    7 - File G.txt
    8 - File H.txt
    9 - File I.txt
    10 - File J.txt
    11 - File K.txt
    12 - File L.txt
    13 - File M.txt
    Wish result:
    Code:
    01 - File A.txt
    02 - File B.txt
    03 - File C.txt
    04 - File D.txt
    05 - File E.txt
    06 - File F.txt
    07 - File G.txt
    08 - File H.txt
    09 - File I.txt
    10 - File J.txt
    11 - File K.txt
    12 - File L.txt
    13 - File M.txt
    Suggested options:
    Name: [0*Number]# - $N
    Start-Counter: 1; increment: 1

    Meaning: [0*Number] will create a 0-prefix with the length (Number-(length(counter)-1))

    Example:

    Someone wants to rename 354 Files to add a file-counter. So he uses the
    name-pattern: [0*2]# - $N
    Start-Counter: 1; increment: 1

    For file 1-9 the length of 0-prefix is: (Number-(length(counter)-1)) = 2-(1-1) = 2-0 = 2
    For file 10-99 the length of 0-prefix is: (Number-(length(counter)-1)) = 2-(2-1) = 2-1 = 1
    For file 100-354 the length of 0-prefix is: (Number-(length(counter)-1)) = 2-(3-1) = 2-2 = 0



    Hint for moderator: I did not forward this to Irfan Skiljan. You can decide if this is a good or duplicated suggestion.


    Thanks - Enomine

    #2
    You may use more hash signs ### in the name pattern for more digits.
    My system: IrfanView 4.62 64bit, Windows 10 22H2, Intel Core i5-3570, 16GB RAM, NVidia GTX 1050Ti 4GB

    Comment


      #3
      Wow, just tried. Did not know that while using batch renaming and # since 15 years.

      Thanks - Enomine

      Comment

      Working...
      X