Want to copy original filename in Multi-Rename tool

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
yahuu
Junior Member
Junior Member
Posts: 57
Joined: 2015-01-15, 03:19 UTC

Want to copy original filename in Multi-Rename tool

Post by *yahuu »

The new name may require a combination of multiple original filename or part of it, but original filename cannot be copied in Multi-Rename tool. Is it possible to add the function to copy original filename?
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Want to copy original filename in Multi-Rename tool

Post by *white »

Do you mean this:
(Help: Dialog box - Multi-rename tool) wrote: [A] Old file name, WITH extension (All characters of the name), without the path
Or do you mean something else?
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: Want to copy original filename in Multi-Rename tool

Post by *sa16 »

2yahuu
Option with TCFS2.
User avatar
yahuu
Junior Member
Junior Member
Posts: 57
Joined: 2015-01-15, 03:19 UTC

Re: Want to copy original filename in Multi-Rename tool

Post by *yahuu »

white wrote: 2023-11-12, 08:12 UTC Do you mean this:
(Help: Dialog box - Multi-rename tool) wrote: [A] Old file name, WITH extension (All characters of the name), without the path
Or do you mean something else?
For example, I selected 3 files to rename
jack.txt
tom.txt
eric.txt
I expect it to be changed to
jack-tom-eric01.txt
jack-tom-eric02.txt
jack-tom-eric03.txt
If I could copy file names in the Multi-Rename Tool, I wouldn't have to type on the keyboard, especially if the names I need to reuse are relatively long.
User avatar
yahuu
Junior Member
Junior Member
Posts: 57
Joined: 2015-01-15, 03:19 UTC

Re: Want to copy original filename in Multi-Rename tool

Post by *yahuu »

sa16 wrote: 2023-11-12, 08:19 UTC 2yahuu
Option with TCFS2.
Please tell me how to use it?
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Want to copy original filename in Multi-Rename tool

Post by *Stefan2 »

yahuu wrote: 2023-11-12, 07:39 UTC The new name may require a combination of multiple original filename or part of it, but original filename cannot be copied in Multi-Rename tool. Is it possible to add the function to copy original filename?

You could utilize the "[N#-#] Part" button for to copy the name yourself from there.




 
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Want to copy original filename in Multi-Rename tool

Post by *Dalai »

yahuu wrote: 2023-11-13, 08:56 UTCFor example, I selected 3 files to rename
jack.txt
tom.txt
eric.txt
I expect it to be changed to
jack-tom-eric01.txt
jack-tom-eric02.txt
jack-tom-eric03.txt
Parts of the old file name (or even the full old name) can be carried over to the new name by incorporating [N] or [A] into the rename mask. But each file is renamed for itself, it doesn't have anything to do with any other file in the rename list. Why would it? Do you expect such a combination of names also when selecting hundreds or even thousands of files for renaming? Doesn't sound like a good idea to me.

Check if any other source contains the name parts you want to use, e.g. the directory the files are in, or its parent directory. If so, you could make use of [P] or [G], respectively. Or see if any content plugin provides the name parts you want.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: Want to copy original filename in Multi-Rename tool

Post by *sa16 »

2yahuu
Button for your example:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe
/ef "set_ini(`%%COMMANDER_PATH%%\usercmd.ini`, em_temp, cmd, `MULTIRENAME $tmp`) set_tcini(Rename, $tmp_name, `%Q%S3#[C:2]`) set_tcini(Rename, $tmp_ext,`txt`) set_tcini(Rename, $tmp_params, `0|1|1|1`) set_tcini(Rename, $tmp_search, `.txt |.txt#`) set_tcini(Rename, $tmp_replace,`-`) tem(em_temp)"
WCMICONS.DLL,46
Rename 3 text files


-1
You need to download the TCFS2 utility.
User avatar
yahuu
Junior Member
Junior Member
Posts: 57
Joined: 2015-01-15, 03:19 UTC

Re: Want to copy original filename in Multi-Rename tool

Post by *yahuu »

Stefan2 wrote: 2023-11-13, 09:07 UTC
yahuu wrote: 2023-11-12, 07:39 UTC The new name may require a combination of multiple original filename or part of it, but original filename cannot be copied in Multi-Rename tool. Is it possible to add the function to copy original filename?

You could utilize the "[N#-#] Part" button for to copy the name yourself from there.
This is how I use it now, but if I want to copy several, it will be very troublesome

Moderator message from: white » 2023-11-13, 17:59 UTC

Fixed quotation.
 
User avatar
yahuu
Junior Member
Junior Member
Posts: 57
Joined: 2015-01-15, 03:19 UTC

Re: Want to copy original filename in Multi-Rename tool

Post by *yahuu »

sa16 wrote: 2023-11-13, 13:34 UTC 2yahuu
Button for your example:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe
/ef "set_ini(`%%COMMANDER_PATH%%\usercmd.ini`, em_temp, cmd, `MULTIRENAME $tmp`) set_tcini(Rename, $tmp_name, `%Q%S3#[C:2]`) set_tcini(Rename, $tmp_ext,`txt`) set_tcini(Rename, $tmp_params, `0|1|1|1`) set_tcini(Rename, $tmp_search, `.txt |.txt#`) set_tcini(Rename, $tmp_replace,`-`) tem(em_temp)"
WCMICONS.DLL,46
Rename 3 text files


-1
You need to download the TCFS2 utility.
Thank you!
I understand the usage of tcfs2, but the above is just an example. In fact, the new name may be just a part of each of the multiple original names.
So if I can copy the old name, whether it is in the name column or the replacement column, I can paste it and modify it at will.
User avatar
yahuu
Junior Member
Junior Member
Posts: 57
Joined: 2015-01-15, 03:19 UTC

Re: Want to copy original filename in Multi-Rename tool

Post by *yahuu »

Dalai wrote: 2023-11-13, 12:40 UTC
yahuu wrote: 2023-11-13, 08:56 UTCFor example, I selected 3 files to rename
jack.txt
tom.txt
eric.txt
I expect it to be changed to
jack-tom-eric01.txt
jack-tom-eric02.txt
jack-tom-eric03.txt
Parts of the old file name (or even the full old name) can be carried over to the new name by incorporating [N] or [A] into the rename mask. But each file is renamed for itself, it doesn't have anything to do with any other file in the rename list. Why would it? Do you expect such a combination of names also when selecting hundreds or even thousands of files for renaming? Doesn't sound like a good idea to me.

Check if any other source contains the name parts you want to use, e.g. the directory the files are in, or its parent directory. If so, you could make use of [P] or [G], respectively. Or see if any content plugin provides the name parts you want.



Regards
Dalai
I gave an example to make it easier for everyone to understand this requirement.
The reality is much more complex. I downloaded multiple files from a project, the names were automatically generated and they all had something in common. I need to add a tag to the file name to make it easier to find it later.
It is also possible that all names need to add part of one of the file names.
So it's definitely not jack-tom-eric01,02,03.txt.

Adding this feature will not affect any current functionality and will simply make it easier to reuse old names.
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Want to copy original filename in Multi-Rename tool

Post by *white »

yahuu wrote: 2023-11-13, 17:58 UTC I understand the usage of tcfs2, but the above is just an example. In fact, the new name may be just a part of each of the multiple original names.
So if I can copy the old name, whether it is in the name column or the replacement column, I can paste it and modify it at will.
I suggest to use the Multi-Rename tool to launch a capable editor. Set up your editor like this:
  • Select 1 or more files
  • Open the Multi-Rename Tool (Ctrl+M)
  • Open the menu of the menu button (F10)
  • Select the option Configure Editor... and set your editor.
For example, if you have set up Notepad++ as your editor, you could do this:
  • Select the 3 files
  • Open the Multi-Rename Tool (Ctrl+M)
  • Change the File name mask to: [N}-
  • Remove the Extension mask ([E])
  • Open the menu of the menu button (F10)
  • Select the option Edit names...
  • (Notepad++ should be opened now)
  • Press Ctrl+A (select all), press Ctrl+J (join lines), press End (unselect), press Backspace (remove last character), type the filename extension
  • Edit the filename further according to your wishes
  • Press Ctrl+D twice to duplicate the line 2 times
  • Add sequence numbers or use auto-rename later
  • Save and exit the editor
  • (back to TC)
  • Click OK to load the new names
  • Start renaming
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Want to copy original filename in Multi-Rename tool

Post by *hi5 »

That sounds a bit tedious to be honest.

I would:

select files
cm_CopyNamesToClip
start MRT
use [X]-[C] in the name field.
Use the search replace to get rid of the extensions (just a list of txt|zip|c|h|whatever) and replace with -
--> save MRT
--> create a usercmd or button with MULTIRENAME = or MULTIRENAME == SAVEDSEARCH
Bob's your uncle

Alternative: use file comments

cm_CopyNamesToClip
Change Attributes, Plugins, comment >> paste filenames -> now all files should have all file names as file comments which you can use to find all files - harder to see but if it is just finding (search files, plugins, tc plugin comments contains...)
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
yahuu
Junior Member
Junior Member
Posts: 57
Joined: 2015-01-15, 03:19 UTC

Re: Want to copy original filename in Multi-Rename tool

Post by *yahuu »

white wrote: 2023-11-13, 18:57 UTC
yahuu wrote: 2023-11-13, 17:58 UTC I understand the usage of tcfs2, but the above is just an example. In fact, the new name may be just a part of each of the multiple original names.
So if I can copy the old name, whether it is in the name column or the replacement column, I can paste it and modify it at will.
I suggest to use the Multi-Rename tool to launch a capable editor. Set up your editor like this:
  • Select 1 or more files
  • Open the Multi-Rename Tool (Ctrl+M)
  • Open the menu of the menu button (F10)
  • Select the option Configure Editor... and set your editor.
For example, if you have set up Notepad++ as your editor, you could do this:
  • Select the 3 files
  • Open the Multi-Rename Tool (Ctrl+M)
  • Change the File name mask to: [N}-
  • Remove the Extension mask ([E])
  • Open the menu of the menu button (F10)
  • Select the option Edit names...
  • (Notepad++ should be opened now)
  • Press Ctrl+A (select all), press Ctrl+J (join lines), press End (unselect), press Backspace (remove last character), type the filename extension
  • Edit the filename further according to your wishes
  • Press Ctrl+D twice to duplicate the line 2 times
  • Add sequence numbers or use auto-rename later
  • Save and exit the editor
  • (back to TC)
  • Click OK to load the new names
  • Start renaming
Thank you very much, I know how to use the editor in Multi-rename tool.
But I just want to copy the old filename to reuse anytime.

Only a certain file name can be modified in the editor (of course this can also be done via column mode, but this adds complexity). My requirement is all files. I need to copy the name of one of them and rename all files.

If there are three files, I want to rename them all to the name of one of the files. It's name is 20+ characters long and I don't want to type it with a keyboard or worry about making typos, I just copy the name and paste it into the filename text box.
Last edited by yahuu on 2023-11-14, 05:26 UTC, edited 1 time in total.
User avatar
yahuu
Junior Member
Junior Member
Posts: 57
Joined: 2015-01-15, 03:19 UTC

Re: Want to copy original filename in Multi-Rename tool

Post by *yahuu »

hi5 wrote: 2023-11-13, 20:10 UTC That sounds a bit tedious to be honest.

I would:

select files
cm_CopyNamesToClip
start MRT
use [X]-[C] in the name field.
Use the search replace to get rid of the extensions (just a list of txt|zip|c|h|whatever) and replace with -
--> save MRT
--> create a usercmd or button with MULTIRENAME = or MULTIRENAME == SAVEDSEARCH
Bob's your uncle

Alternative: use file comments

cm_CopyNamesToClip
Change Attributes, Plugins, comment >> paste filenames -> now all files should have all file names as file comments which you can use to find all files - harder to see but if it is just finding (search files, plugins, tc plugin comments contains...)
But the rules are different every time I enter a new name. It may be that only one old name is used, or it may be a combination of multiple ones. SAVEDSEARCH makes no sense to me.
Attributes is useful to me, but the files need to be shared. Others don't use TC and don't know how to find them.
Post Reply