News:

MultiCommander v16.6 is released!

Main Menu

MC install path

Started by karthik, November 29, 2012, 16:51:42

Previous topic - Next topic

karthik

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)

Relative path might works ?

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

karthik

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.