Rename-Tool; swap/switch position of words in file name

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Rename-Tool; swap/switch position of words in file name

Post by *Stefan2 »

noxext wrote: 2022-08-11, 17:23 UTC
Pattern of all file names is Brand name + Name of the product + quantity.
Some brands have 1 or even 4 words in their names, name of the product is very variable with words
and quantity is always number + measure.

Not good.

We need an anker point to match the "border" between brand and product.
In your first example that was the space after the first two words.

quantity number + measure we can match fine, I guess. That are always the only digits in whole file name?


Are you able to change all brand names and add an sign, like an # or , ?

Or can you sort by amount of brand names words ?
So we could rename 2-word brand names, next 3 word brand names, . . .





 
noxext
Junior Member
Junior Member
Posts: 4
Joined: 2022-08-11, 13:28 UTC

Re: Rename-Tool; swap/switch position of words in file name

Post by *noxext »

This is actual folder with images
https://prnt.sc/clXFxuw_IqFA
I also have on this way in excel file
https://prnt.sc/2Z3zg9hR5758

Does this can be useful?
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Rename-Tool; swap/switch position of words in file name

Post by *Stefan2 »

noxext wrote: 2022-08-11, 18:49 UTC This is actual folder with images
https://prnt.sc/clXFxuw_IqFA
Your real file names differ from your given examples, that is not nice as we have double work to do in given the right syntax.

noxext wrote: 2022-08-11, 18:49 UTC I also have on this way in excel file
https://prnt.sc/2Z3zg9hR5758
That is a nice list because there are the need anchors that are missing in the file names.

Can you rename all Now Foods to Now Foods# ?
And so on for all others...
But then there are digits in the names too, and the measure have one or two parts. . . . need to think some more if I have some time . ..


Or, if the files and the list are all in an correct order, you could rename with Multi-rename tool and his "Load names from file" feature (press F10-key)


While in TC press the F1-key, and in Help search for "Load names from file" to find "Dialog box - Multi-rename tool"

At that page find and read at:
Opens a context menu with the following options:
Load names from file: Specify a text file from which the new names should be loaded
Edit names: Save current target names to a text file, edit them, and paste back.
Configure editor: Choose a different editor to edit the files. Make sure that the editor saves as plain text!
The menu can be opened with F10.



 
noxext
Junior Member
Junior Member
Posts: 4
Joined: 2022-08-11, 13:28 UTC

Re: Rename-Tool; swap/switch position of words in file name

Post by *noxext »

My apologies, I just removed dashes in test folder but they can be added again. I am very grateful for help, didn't know for feature "Load names from file". I have them all in proper order in excel.
https://prnt.sc/KvwteAFbtJ1_
I will test that option right away

Update:it works !!! :idea: :D

Excel file contain few more new products which I add. Could you tell me how this option work, does it match words or how. Do i need to put new names in new file which I am gonna to load in exact same order like original image folder?
Post Reply