News:

MultiCommander v16.6 is released!

Main Menu

Configuring TeraCopy

Started by mgigli, April 12, 2026, 02:59:29

Previous topic - Next topic

mgigli

Hi, I'm new to MultiCommander, having come from TotalCommander, and I want to configure TeraCopy as an external command. So far, I can send one file to TeraCopy, but when I try to send a list of files, everything goes wrong. It seems that MultiCommander sends the list of files separated by spaces, but TeraCopy expects the list of files on separate lines. So, I would like to ask if anyone has already resolved this issue. If not, how would you recommend proceeding?
Should I create a script to send one file at a time, or should I change the list and replace the spaces with new lines?

Mathias (Author)

You should be able to create that using MultiScript.
I don't know what the list of file should look like. but there is a command to save all selected items to a file. and it can be scripted. maybe that can be used.
(the command in menu> Edit > Save selection to file) but with UserDefinedScript it can be automated

Jean

I'm using this snippet to send selected files to a rename tool of my own which picks up the file when started.

@var $files = GetSelectedPaths();
@var $filename = "c:\in\file_list.txt";
SaveArray($filename, $files, 1,  1);
MC.Run CMD={"C:\Tools\Rename\Win64\Debug\Rename.exe"};

total_annihilation00

#3
On my computer when I initiate a paste operation (cut/ copy) I get a Menu Popup asking whether to paste using Windows Explorer or the faster TeraCopy (I use it mostly for copying/ moving files to & fro my USB stick.)
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~


mgigli

I have one more question: would it be too difficult to add the option to send the list as one file per line instead of separated by a space? Several copy software programs use this format.

mgigli

I finally managed to do it, with a bit of help.
I'm leaving my multiscript here for anyone who wants it.
At the moment, it works with files, folders and lists.
If there are any problems, please let me know, as it might need to be changed.

Quote
@var $listfile = TranslateEnvString( "%TEMP%" ) + "\\tc_list.txt";
@var $paths = GetSourceSelectedPaths();
@var $target = GetTargetPath();
SaveArray( $listfile, $paths, 1, 1 );
@var $args = "Copy *\"" + $listfile + "\" \"" + $target + "\"";
MC.Run CMD="C:\Program Files\TeraCopy\TeraCopy.exe" ARG="{$args}"