Multi Commander Support Forum

Multi Commander => Support and Feedback => Topic started by: mgigli on April 12, 2026, 02:59:29

Title: Configuring TeraCopy
Post by: mgigli on April 12, 2026, 02:59:29
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?
Title: Re: Configuring TeraCopy
Post by: Mathias (Author) on April 12, 2026, 08:47:46
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
Title: Re: Configuring TeraCopy
Post by: Jean on April 12, 2026, 10:14:10
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"};
Title: Re: Configuring TeraCopy
Post by: total_annihilation00 on April 13, 2026, 12:48:34
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.)
Title: Re: Configuring TeraCopy
Post by: mgigli on April 14, 2026, 20:22:10
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.
Title: Re: Configuring TeraCopy
Post by: mgigli on May 09, 2026, 15:26:40
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}"