Author Topic: Pasting clipboard data into Multi Commander  (Read 4361 times)

matm

  • Junior Member
  • **
  • Posts: 42
    • View Profile
Pasting clipboard data into Multi Commander
« on: August 28, 2012, 11:47:59 »
Hello Mathias

I have some deep subtrees with many different roots.

So if I had a subpath that begins with a backslash, e.g. \Prod\Batchs\Logs, and I paste it, I would like it to be appended to current path and go.
So if current path is M:\Accounting\, result path will be M:\Accounting\Prod\Batchs\Logs, and content will be displayed

Does it sound feasible?
Best,

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 3888
    • View Profile
    • Multi Commander
Re: Pasting clipboard data into Multi Commander
« Reply #1 on: August 28, 2012, 12:41:57 »
You can do that with Multi-Script

Code: [Select]
@var $path = GetSourcePath();
$path = $path ^ GetClipboardText();

// Just to make sure we get a \ at the end
$path = $path ^ "";

MC.Explorer.Goto PATH="{$path}";

matm

  • Junior Member
  • **
  • Posts: 42
    • View Profile
Re: Pasting clipboard data into Multi Commander
« Reply #2 on: August 29, 2012, 12:39:24 »
Thanks.

It works great.