Multi Commander > Script

send selected files to a program in the 'send to' list

(1/1)

Jean:
Back at multicommander after a trial of directory opus. Glad to be back, i prefer MC, not only money wise.

Is it possible to send selected files to a program in the 'send to' list by a script?
Another solution for me would be the ability to assign a key to that specific program in the 'send to' list.
The whole idea is that i'd like to send selected files to a utility with just one keystroke.

Jean:
If someone is looking for a way to do this, this works for me.


--- Code: ---@var $files = GetSelectedPaths(), $n;
@var $s = "";
for( $n=0; $n<arrayCount($files); $n++ )
  {
  $s = $s + "\"" + $files[$n] + "\" ";
  }
$s = "c:\myprog.exe " + $s;
MC.Run CMD={$s}

--- End code ---

Mathias (Author):
or


--- Code: ---@var $selectedItems = GetSelectedPaths();
@var $selected = ArrayToString( $selectedItems , "  ", 1 ); // space separated list with all selected items

@var $cmd = "c:\myprog.exe " + $selected;
MC.Run CMD={$cmd}

--- End code ---

Jean:
great, thank you.

Navigation

[0] Message Index

Go to full version