Author Topic: How to open a specific folder in a new tab  (Read 17385 times)

HippoFan

  • Newbie
  • *
  • Posts: 1
    • View Profile
How to open a specific folder in a new tab
« 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: newbielink:javascript:void(0); [nonactive]
// 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.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4485
    • View Profile
    • Multi Commander
Re: How to open a specific folder in a new tab
« Reply #1 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

AlanJB

  • VIP Member
  • *****
  • Posts: 436
  • VERY old Programmer
    • View Profile
Re: How to open a specific folder in a new tab
« Reply #2 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