Multi Commander Support Forum
Multi Commander => Support and Feedback => Topic started by: karthik 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.
-
Relative path might works ?
WScript ${mcinstallpath}..\FreefileSync\HideConsole.vbs ${mcinstallpath}..\FreefileSync\Compare.cmd "${leftpath}" "${rightpath}"
-
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.