Author Topic: get path from both explorer panels  (Read 7859 times)

karthik

  • Active Member
  • ***
  • Posts: 56
    • View Profile
get path from both explorer panels
« 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?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4283
    • View Profile
    • Multi Commander
Re: get path from both explorer panels
« Reply #1 on: August 24, 2012, 10:10:28 »
Multi-Tags 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}
« Last Edit: August 24, 2012, 10:13:03 by Mathias (Author) »

karthik

  • Active Member
  • ***
  • Posts: 56
    • View Profile
Re: get path from both explorer panels
« Reply #2 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.

karthik

  • Active Member
  • ***
  • Posts: 56
    • View Profile
Re: get path from both explorer panels
« Reply #3 on: August 24, 2012, 10:33:02 »
Figured that out. A double quote does the job. Thanks.