Author Topic: MC install path  (Read 8312 times)

karthik

  • Active Member
  • ***
  • Posts: 56
    • View Profile
MC install path
« on: November 29, 2012, 16:51:42 »
I am doing a user defined command and for that I need to get the MC install path - which I can get from ${mcinstallpath}. I need to go up one directory and add a different directory to it. For example if MC install path is C:\Portable\Multicommander, I am writing a Uerdefined command which has the following text:

WScript C:\Portable\FreefileSync\HideConsole.vbs C:\Portable\FreefileSync\Compare.cmd "${leftpath}" "${rightpath}"

I would like to replace the C:\Portable using the main path of multicommander installation. How do I do that?

Thanks.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4286
    • View Profile
    • Multi Commander
Re: MC install path
« Reply #1 on: November 29, 2012, 17:30:53 »
Relative path might works ?

Code: [Select]
WScript ${mcinstallpath}..\FreefileSync\HideConsole.vbs ${mcinstallpath}..\FreefileSync\Compare.cmd "${leftpath}" "${rightpath}"

karthik

  • Active Member
  • ***
  • Posts: 56
    • View Profile
Re: MC install path
« Reply #2 on: December 10, 2012, 09:10:58 »
Thanks for the suggestion. The line works with a slight modification (addition of a \ after the mcinstall path)

This works:
WScript ${mcinstallpath}\..\FreefileSync\HideConsole.vbs ${mcinstallpath}\..\FreefileSync\Compare.cmd "${leftpath}" "${rightpath}"

Thanks again.