Want to copy original filename in Multi-Rename tool
Moderators: Hacker, petermad, Stefan2, white
Want to copy original filename in Multi-Rename tool
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?
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: Want to copy original filename in Multi-Rename tool
Do you mean this:
Or do you mean something else?(Help: Dialog box - Multi-rename tool) wrote: [A] Old file name, WITH extension (All characters of the name), without the path
Re: Want to copy original filename in Multi-Rename tool
2yahuu
Option with TCFS2.
Option with TCFS2.
Re: Want to copy original filename in Multi-Rename tool
For example, I selected 3 files to renamewhite wrote: 2023-11-12, 08:12 UTC Do you mean this:Or do you mean something else?(Help: Dialog box - Multi-rename tool) wrote: [A] Old file name, WITH extension (All characters of the name), without the path
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.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: Want to copy original filename in Multi-Rename tool
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: Want to copy original filename in Multi-Rename tool
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.
Re: Want to copy original filename in Multi-Rename tool
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.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
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
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Want to copy original filename in Multi-Rename tool
2yahuu
Button for your example:You need to download the TCFS2 utility.
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
Re: Want to copy original filename in Multi-Rename tool
This is how I use it now, but if I want to copy several, it will be very troublesomeStefan2 wrote: 2023-11-13, 09:07 UTCyahuu 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.
Moderator message from: white » 2023-11-13, 17:59 UTC
Fixed quotation.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: Want to copy original filename in Multi-Rename tool
Thank you!sa16 wrote: 2023-11-13, 13:34 UTC 2yahuu
Button for your example:You need to download the TCFS2 utility.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
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.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: Want to copy original filename in Multi-Rename tool
I gave an example to make it easier for everyone to understand this requirement.Dalai wrote: 2023-11-13, 12:40 UTCParts 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.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
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
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.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: Want to copy original filename in Multi-Rename tool
I suggest to use the Multi-Rename tool to launch a capable editor. Set up your editor like this: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.
- 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.
- 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
Re: Want to copy original filename in Multi-Rename tool
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...)
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)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: Want to copy original filename in Multi-Rename tool
Thank you very much, I know how to use the editor in Multi-rename tool.white wrote: 2023-11-13, 18:57 UTCI suggest to use the Multi-Rename tool to launch a capable editor. Set up your editor like this: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.For example, if you have set up Notepad++ as your editor, you could do 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.
- 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
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.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: Want to copy original filename in Multi-Rename tool
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.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...)
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.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1