Expand certain folders in Folder Tree by default

I set Folder Tree to start at This PC and want one of the drives to be expanded by default upon opening the Default Lister.

I've tried expanding it and then saving that as the Default Lister, but that didn't seem to have done anything.

My Folder Tree options:
image

I don't think this can be stored in the settings. You could use a button or a script add-in.

Button

Go PATH=D:\ EXPANDTREE 
Go BACK
Button as XML
<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none">
	<label>ExpandTree</label>
	<icon1>#newcommand</icon1>
	<function type="normal">
		<instruction>Go PATH=D:\ EXPANDTREE </instruction>
		<instruction>Go BACK</instruction>
	</function>
</button>

Script add-in

// Called by Directory Opus to initialize the script
function OnInit(initData) {
    initData.name = 'ExpandTree';
    initData.default_enable = true;
    initData.min_version = '12.0';
}

// Called when a new Lister is opened
function OnOpenLister(openListerData) {
    var cmd = DOpus.Create().Command();
    cmd.SetSourceTab(openListerData.lister.activetab);
    cmd.RunCommand('Go PATH=D:\ EXPANDTREE');
    cmd.RunCommand('Go BACK');
}

EventExpandTree.js.txt (456 Bytes)

How to

How to use buttons and scripts from this forum