Multi Commander Support Forum

Multi Commander => Support and Feedback => Topic started by: karthik on August 24, 2012, 09:59:46

Title: get path from both explorer panels
Post by: karthik on August 24, 2012, 09:59:46
I would like to call a batch file from within MC using the paths displayed in the two explorer panel path rows as arguments... Something like

runbatch.bat leftpath rightpath

Is there a way to do this?
Title: Re: get path from both explorer panels
Post by: Mathias (Author) on August 24, 2012, 10:10:28
Multi-Tags (http://multicommander.com/docs/multitags) can be used in Bat/External and Custom Commands and since you are calling an external bat your choice should be external.

So for example

Create a User Command of type : External
Code: [Select]
"D:\test.bat" ${sourcepath} ${targetpath}
Title: Re: get path from both explorer panels
Post by: karthik on August 24, 2012, 10:31:51
That helps. But when the source path has a space character the string breaks and does not show the full path.
Title: Re: get path from both explorer panels
Post by: karthik on August 24, 2012, 10:33:02
Figured that out. A double quote does the job. Thanks.