News:

MultiCommander v16.6 is released!

Main Menu

Start up with folder tree openend

Started by Herrie, July 24, 2016, 17:07:42

Previous topic - Next topic

Herrie

Perhaps I am dumb, but I want to open MC, showing a specifried drive AND it's folderlist.
I seem to be blind or so, but I cannot find te setting.
I use windows 7 64 bit

Mathias (Author)

By default it opens where you left it.

But you can force paths by sending path as command line arguments or telling it to load tab configuration from file at startup
http://multicommander.com/docs/commandlineparameters


Herrie

I made the following file:

Name:
startup.ini

Contents:

[PANEL_1]
Path=F:\Mijn Documenten\
Side=L
ShowTree=1

[PANEL_2]
Path=E:\
Side=R
ShowTree=1

Location:
C:\Program Files\MultiCommander (x64)\

Commandline in shortcut:
"C:\Program Files\MultiCommander (x64)\MultiCommander.exe" -F=" startup.ini"
It is not working as supposed to.

What mistake did I make?

Thanks for your help so far


Mathias (Author)

You got an extra space infront of " startup.ini"   ( unless that just a type when writing the post )
Or it do not find the setup.ini,  place it in MC folder. or use a full path


Herrie

Ahhh silly me!! it was the space!
Thanks a lot
I must have overlooked that.
topic can be closed

Herrie

PLEASE NOT CLOSE YET.

Apparently it is NOT working.
I corrected the mistake (typo)
But, if I change the multicommander to another drive while lookiung for a file and I close the application, reopen it, the desired foilders/drives are not according to the ini file.
(See enclosed file)
Does the ini file need " or ' around the folder name?

Mathias (Author)

No. It works.

Make sure you place the file where MC is located or use full path, If it does not finds the file it will just fall back to normal operations


Herrie

location:
C:\Program Files\Multicommander (x64)\startup.ini
In the box in Shortcut I types a ' too much, yet antorher typo.
full command is now:
"C:\Program Files\MultiCommander (x64)\MultiCommander.exe" -F="startup.ini"

doglover3920

Works nice.
One question though.  I have 3 tabs in the left pane.
The third tab is selected when MC opens.
But I prefer the first tab to be selected (highlighted).  How can I achieve that?

Willy

Mathias (Author)

Quote from: doglover3920 on July 27, 2016, 15:29:56
Works nice.
One question though.  I have 3 tabs in the left pane.
The third tab is selected when MC opens.
But I prefer the first tab to be selected (highlighted).  How can I achieve that?

Willy

I think you can use Active=1
And of course you can only have that on one panel per side .

Herrie

perhaps the order makes the last one active?
so put the active window in last position

Mathias (Author)

The order only matter for what panel is in focus.

Active is what tab is currently shown, so if you have multiple tabs on the left side you can make sure that the tab that is shown is the one in the middle

doglover3920

Tried to change the order.  No effect.
Tried Active=1 .  No effect.

The ini file is given below:

[PANEL_1]
Path=D:\EPG\
Side=L
ShowTree=1
Active=1

[PANEL_2]
Path=D:\Users\Willy\Downloads
Side=L
ShowTree=0

[PANEL_3]
Path=D:\Users\Willy\Documents\
Side=L
ShowTree=1

[PANEL_4]
Path=D:\
Side=R
ShowTree=1


Willy

Jungle

doglover3920
You may create User Defined Command with command type Multi-Script. Like this

MC.SetActiveTab PANEL=LEFT TAB=1
MC.SetActiveTab PANEL=RIGHT TAB=1


and specify command line param -AutoRun="your_command_name"

Mathias
Maybe -AutoRun param should also recognize command Unique ID?

doglover3920


Mathias (Author)

Active=1 just to work. But looks like I broke it. but was a easy fix. So will work in next version coming soon