Multi Commander Support Forum
Multi Commander => Support and Feedback => Topic started by: Pawel on January 25, 2017, 13:15:26
-
Hi,
I am new to Multi Commander. But, it will soon change :P
I have a question... I am creating user defined menu, with menu commands (running programs).
I need to open directory in Multi Commander Explorer Panel (not in Windows Explorer).
How to do this?
What I do:
Defining User Command:
<userdefinedcommand name="Open Directory" id="3c7cf12e862c4b38b1aacf8b25bd61ba" type="external">
<tip>Open directory...</tip>
<command>C:\Users\Pawel\Desktop</command>
</userdefinedcommand>
And use it in Menu:
<menuitem name="Open Directory" id="3c7cf12e862c4b38b1aacf8b25bd61ba"/>
It works, but it open directory in Windows Explorer!
I want to open it in left or right panel of Multi Commander...
I hope it can be done easily...
Thanks for help,
-Pawel
-
Create User Defined command with type Custom Commands:
MC.Explorer.Goto PATH="e:\temp"
In User Commands editor you may view all available commands and their params/
-
Thanks!
Yes, I found it... I should search better.
-Pawel
-
More questions is coming...
1. How to get system directories?
I am creating user defined menu where I want to add possibility to open all most important system directories.
Is it possible to use SHGetSpecialFolderPath(https://msdn.microsoft.com/pl-pl/library/windows/desktop/bb762204(v=vs.85).aspx) function to get directories (https://msdn.microsoft.com/pl-pl/library/windows/desktop/bb762494(v=vs.85).aspx) with Multi Commander MultiScript?
If not, how to get those directories (desktop, pictures, music, video, favourites, fonts, my doscuments, system, windows, startmenu, appdata, etc...)
2. I was trying to add & (ampersand) to the user menu (to make it work with keyboard) -> it seems to be impossible... is it?
Thanks for any help,
-Pawel
-
1. You may get some paths by expanding environment variables (http://multicommander.com/docs/multiscript/functions/misc#translateenvstring) like %WINDIR%
2. You may use ampersand in the custom command name
-
1. You may get some paths by expanding environment variables (http://multicommander.com/docs/multiscript/functions/misc#translateenvstring) like %WINDIR%
Yes. I do. But this is not everything I need (in fact only few)... I am looking for other possibility (I see Multi Commander has built in access (via Internal Commands\File Utils\<Command>) to many System Directories.
Hope, someone will find better solution. If any exists :)
2. You may use ampersand in the custom command name
Yes! Thanks. I have added it manually (&Text) and didn't notice Multi Commander saves it as "&Text"
-Pawel
-
Getting special folders is not support from multiscript (only the one exposed from environment variables)
I it can be useful, So I will add it to my list of MultiScript command to add. so in the next version that will be possible.. (I think)
Yes if you manually are editing the xml file you need to type & to get a & because & in xml are a special characters and must be encoded in a special way.
-
Cool!
I am waiting :)
Keep up good work!
-Pawel