Multi Commander Support Forum

Multi Commander => Support and Feedback => Topic started by: Herrie on July 24, 2016, 17:07:42

Title: Start up with folder tree openend
Post by: Herrie on July 24, 2016, 17:07:42
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
Title: Re: Start up with folder tree openend
Post by: Mathias (Author) on July 24, 2016, 17:11:36
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

Title: Re: Start up with folder tree openend
Post by: Herrie on July 25, 2016, 21:25:19
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

Title: Re: Start up with folder tree openend
Post by: Mathias (Author) on July 25, 2016, 21:41:23
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

Title: Re: Start up with folder tree openend
Post by: Herrie on July 26, 2016, 07:50:07
Ahhh silly me!! it was the space!
Thanks a lot
I must have overlooked that.
topic can be closed
Title: Re: Start up with folder tree openend
Post by: Herrie on July 26, 2016, 18:32:34
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?
Title: Re: Start up with folder tree openend
Post by: Mathias (Author) on July 26, 2016, 19:53:46
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

Title: Re: Start up with folder tree openend
Post by: Herrie on July 27, 2016, 13:28:30
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"
Title: Re: Start up with folder tree openend
Post by: 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
Title: Re: Start up with folder tree openend
Post by: Mathias (Author) on July 27, 2016, 17:26:42
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 .
Title: Re: Start up with folder tree openend
Post by: Herrie on July 27, 2016, 19:56:04
perhaps the order makes the last one active?
so put the active window in last position
Title: Re: Start up with folder tree openend
Post by: Mathias (Author) on July 27, 2016, 22:32:31
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
Title: Re: Start up with folder tree openend
Post by: doglover3920 on July 28, 2016, 10:05:57
Tried to change the order.  No effect.
Tried Active=1 .  No effect.

The ini file is given below:

Code: [Select]
[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
Title: Re: Start up with folder tree openend
Post by: Jungle on July 28, 2016, 10:38:03
doglover3920
You may create User Defined Command with command type Multi-Script. Like this

Code: [Select]
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?
Title: Re: Start up with folder tree openend
Post by: doglover3920 on July 28, 2016, 11:09:35
Autorun does the trick.

Willy

Title: Re: Start up with folder tree openend
Post by: Mathias (Author) on July 29, 2016, 12:26:11
Active=1 just to work. But looks like I broke it. but was a easy fix. So will work in next version coming soon