Multi Commander Support Forum

Multi Commander => Script => Topic started by: HippoFan on November 19, 2022, 04:25:36

Title: How to open a specific folder in a new tab
Post by: HippoFan on November 19, 2022, 04:25:36
I want to create a script that open a new tab and goto a specific folder. How do you open a new tab in the current panel? I created a user defined command that executes the internal command to duplicate a tab (Duplicate Tab in Multicommander module). In another script, I execute the duplicate tab command and assign a specific folder. However, Goto command doesn't change the folder in the active tab.

Code: [Select]
// This user command duplicates a tab
MC.RunUserCmd ID="2e10ab863f2548c2be62cde4b95ecd27"
MC.Explorer.Goto PATH="c:\MyData\Projects\DesktopProjects"

Is it possible to achieve what I want?

Thanks in advance.
Title: Re: How to open a specific folder in a new tab
Post by: Mathias (Author) on November 19, 2022, 12:13:39
The custom command 'MC.Explorer.NewBrowser' will open a new tab. and option for path and side and more

http://multicommander.com/docs/customcommands_list#mc.explorer.newbrowser

ex
Code: [Select]
MC.Explorer.NewBrowser PATH="C:\Bin" SIDE=LEFT
Title: Re: How to open a specific folder in a new tab
Post by: AlanJB on November 19, 2022, 12:29:45
How about:

Code: [Select]
MC.Explorer.NewBrowser PATH="C:\\MyData\\Projects\\DesktopProjects" SIDE=SOURCE;
See also: http://multicommander.com/docs/customcommands_list#mc.explorer.newbrowser (http://multicommander.com/docs/customcommands_list#mc.explorer.newbrowser)