Is there a way to pass files selected in windows explorer to totalcmd's Multi-rename tool?
I noticed some internal tools can be invoked via command-line parameter such as the Lister (/S=L) or Search (/S=F) and was wondering if there is something similar for the Multi-rename tool as well.
Sending files selected in windows explorer to totalcmd's Multi-rename tool?
Moderators: Hacker, petermad, Stefan2, white
Re: Sending files selected in windows explorer to totalcmd's Multi-rename tool?
As I can see, at least you can do it manually as follows:
There's the "Copy path" button at the "Home" tab of the Windows Explorer ribbon (Windows 10).
So step 1: is copying paths of the selected files using the above button.
Step 2: is pasting the above data in your text editor and saving it somewhere as a file.
you'll get a file with something like this inside:
You have to remove quotation marks there, otherwise, it won't work (at least it doesn't for me), so getting something like this:
Step 3: Follow the above path in Total Commander. e.g. using cd y:\our\files\full\path command
Step 4: Use Total Commander: Menu - Mark - Load Selection From File (it's a cm_LoadSelectionFromFile command), and open the above file.
Step 5: Use Total Commander Multi-rename tool, that's it.
There's the "Copy path" button at the "Home" tab of the Windows Explorer ribbon (Windows 10).
So step 1: is copying paths of the selected files using the above button.
Step 2: is pasting the above data in your text editor and saving it somewhere as a file.
you'll get a file with something like this inside:
Code: Select all
"y:\our\files\full\path\name1.ext"
"y:\our\files\full\path\name2.ext"
"y:\our\files\full\path\name3.ext"
"y:\our\files\full\path\nametc.ext"
Code: Select all
y:\our\files\full\path\name1.ext
y:\our\files\full\path\name2.ext
y:\our\files\full\path\name3.ext
y:\our\files\full\path\nametc.ext
Step 4: Use Total Commander: Menu - Mark - Load Selection From File (it's a cm_LoadSelectionFromFile command), and open the above file.
Step 5: Use Total Commander Multi-rename tool, that's it.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Re: Sending files selected in windows explorer to totalcmd's Multi-rename tool?
2beb
A waste of time. It's faster to open TC in the same folder, select the desired one and press Ctrl+M.
Technically, you can make an AHK script that by hotkey will create a list and do the rest, but the efficiency from this is not much.
There is only one question brewing here - why use explorer at all?
A waste of time. It's faster to open TC in the same folder, select the desired one and press Ctrl+M.
Technically, you can make an AHK script that by hotkey will create a list and do the rest, but the efficiency from this is not much.
There is only one question brewing here - why use explorer at all?
Overquoting is evil! 👎
Open an folder from WinExplorer in TC
the other way around:fm-xvid wrote: 2023-02-22, 00:46 UTC Is there a way to pass files selected in windows explorer to totalcmd's Multi-rename tool?
Add an new entry to your personal context menu on folders for to open a wanted folder in TC:
For that you must modify the registry at "HKCU\Software\Classes\Directory\shell\"
and add two new sub keys below of "shell": "YourDescriptionForTheMenuEntry" and below of that a "command" named key
Next modify the Default name of the "command" key and add the full path
plus wanted options (optional), plus the %1-placeholder to pass the selected folder to the command line.
Don't forget the correct quoting.
That should look like this;
HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open Folder in TC\command
Default = "D:\rive\path to\TotalCMD\TOTALCMD.EXE" /O /T /S /R "%1"
In an *.reg file this would look like:
@="\"D:\\rive\\path to\\TotalCMD\\TOTALCMD.EXE\" /O /T /S /R \"%1\""
TCs command line options for your disposing:
/O use running TC
/N open new TC
/T open new Tab
/L open in left panel
/R open in right panel
/S /L open in active panel
/S /R open in passiv panel
"%1" selected folder as parameter
Re: Sending files selected in windows explorer to totalcmd's Multi-rename tool?
Thanks for all the answers. It seems that opening the folder in totalcmd is faster and more efficient.
I would like clarify that I am using a custom app that is hard-coded to open explorer to view the files.
Anyway, I will try the REG edit method.
I would like clarify that I am using a custom app that is hard-coded to open explorer to view the files.
Anyway, I will try the REG edit method.