Multi Commander Support Forum

Multi Commander => Support and Feedback => Topic started by: matm on August 28, 2012, 11:47:59

Title: Pasting clipboard data into Multi Commander
Post by: matm 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,
Title: Re: Pasting clipboard data into Multi Commander
Post by: Mathias (Author) 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}";
Title: Re: Pasting clipboard data into Multi Commander
Post by: matm on August 29, 2012, 12:39:24
Thanks.

It works great.