1. #1

    How to renumber filenames?

    How do renumber the file names?


    1#filename.jpg
    2#filename.jpg
    3#filename.jpg
    ...
    10000#filename.jpg

    If the order of the numbers is different, set the correct numbering.


    1#z98709_9-.jpg
    7#lkjn98JJJ.jpg
    7710#l87658JyJ.jpg


    Replace with:
    1#z98709_9-.jpg
    2#lkjn98JJJ.jpg
    3#l87658JyJ.jpg

    Note: # -> Separator


    Tool ADVANCED RENAMER 3.80



    • Ad Bot

      advertising
      Beep.

        
       

  2. #2
    AceInfinity's Avatar
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,716

    Re: How to renumber filenames?

    You can do this with a batch script and the dir command if you sort the files and rename each with an incremented variable.
    \n\n

    Automation Programmer
    Development Site: aceinfinity.net

  3. #3

    Re: How to renumber filenames?

    I want to keep all the original file names (unique file names - very important!).
    I want to add a counter to the separator [0-9]#uniquefilename.jpg
    [0-9] counter
    # separator

    Of course, the order of the "Date of Last Access or Modification" must be kept in the case where I do not want a mixed up order of a series of photos.

  4. #4
    AceInfinity's Avatar
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,716

    Re: How to renumber filenames?

    Quote Originally Posted by maki View Post
    I want to keep all the original file names (unique file names - very important!).
    I want to add a counter to the separator [0-9]#uniquefilename.jpg
    [0-9] counter
    # separator

    Of course, the order of the "Date of Last Access or Modification" must be kept in the case where I do not want a mixed up order of a series of photos.
    Yes - I understand. It is still possible with batch scripting though.

    You can do substrings in batch, compare against digits, find the separator, and rename with the incremented number and the original filename + extension. Renaming a file doesn't change the last modified date.
    \n\n

    Automation Programmer
    Development Site: aceinfinity.net

  5. #5

    Re: How to renumber filenames?

    I have no knowledge about scripts. Is not it better to do it in a program that has all the options to change the file numbering?

    You can continue to suggest your ideas, but unless you provide a ready script or other simpler solutions.

  6. #6
    Will Watts's Avatar
    Join Date
    Mar 2012
    Location
    %tmp%
    Posts
    5,005
    • specs System Specs
      • Manufacturer:
        Alienware M15x
      • Model Number:
        M15x
      • CPU:
        i5 520 M @ 2.40GHz
      • Memory:
        8GB
      • Graphics:
        ATI Radeon HD 5800
      • Hard Drives:
        720GB 7200 rpm
      • Operating System:
        Windows 8 + Ubuntu

    Re: How to renumber filenames?

    Hi maki,

    We're not here to babysit you - it's unlikely anyone here will be willing to write a batch script for you.

    The program you posted in your first post has batch scripting functionality. A quick Google should give you some ideas on how to do this:
    Increment file name in batch script - Google Search
    Has Sysnative Forums helped you? Please consider donating to help support the forum.


  7. #7

    Re: How to renumber filenames?

    No need a complicated script since everything can be done in that program.
    Say you do not want to help me set options in the program, or you have no idea how to use it. Topic ended.

  8. #8
    Jared's Avatar
    Join Date
    Feb 2014
    Age
    20
    Posts
    1,570
    • specs System Specs
      • Manufacturer:
        Custom
      • Motherboard:
        ASUS Maximus VII Ranger
      • CPU:
        i7 4790K @ 4.4GHz
      • Memory:
        Corsair Vengeance 16GB 1866MHz
      • Graphics:
        MSI Gaming 4G GTX 980
      • Sound Card:
        Creative Soundblaster ZxR
      • Hard Drives:
        Samsung 850 SSD 250GB
      • Disk Drives:
        Western Digital Black Caviar 2TB
      • Power Supply:
        Corsair RM650 Modular 650 Watts
      • Case:
        Fractal Design Define R5 Window
      • Cooling:
        Corsair H100i GTX
      • Display:
        Dell U2515H 25inch 2560x1440 + LG Flatron M2262D 22inch 1920x1080
      • Operating System:
        Windows 10 Professional x64

    Re: How to renumber filenames?

    We know it isn't complicated, you've been told what you need.
    There's a difference between helping you, and doing it for you.

  9. #9
    Will Watts's Avatar
    Join Date
    Mar 2012
    Location
    %tmp%
    Posts
    5,005
    • specs System Specs
      • Manufacturer:
        Alienware M15x
      • Model Number:
        M15x
      • CPU:
        i5 520 M @ 2.40GHz
      • Memory:
        8GB
      • Graphics:
        ATI Radeon HD 5800
      • Hard Drives:
        720GB 7200 rpm
      • Operating System:
        Windows 8 + Ubuntu

    Re: How to renumber filenames?

    Hi maki,

    I would like to remind you again that we're a free support forum, run by volunteer staff to help with genuine issues.

    We're not here to argue with you - if you don't want our advice then you're welcome to post on a different forum.

    On user request, this topic is closed.
    Has Sysnative Forums helped you? Please consider donating to help support the forum.


Log in

Log in