Configuring Pane Display at Startup

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Configuring Pane Display at Startup

Post by TestMeister »

I have what I believe is a very basic XY layout:

•  Left panel nav tree
•  Single pane right panel with 6 tabs
    o  4 locked
    o	2 unlocked and set with C:\ as the home
        • 1 set as the default


I have manually positioned the tree completely collapsed with the tabs to their locked or home locations and then executed #852 "Save tabset". By using #857 "Revert to saved tabset", I can manually restore the tabs to the top of their root locations.

I would like to launch XY each day with the tabs configured as if #857 had been executed and with the left pane tree collapsed.

By specifying a script file as an argument in the XY shortcut, I able to execute "tabset("revert")" which takes care of the tabs but cannot find a command to collapse the tree. Is this possible?

Thanks!

klownboy
Posts: 4139
Joined: 28 Feb 2012 19:27

Re: Configuring Pane Display at Startup

Post by klownboy »

There are a number of ways to accomplish what you want. One is starting XYplorer with a script. Try this:
XYplorer.exe /script="::#857;#1010;" You should probably provide the full path to XYplorer. You may not need the fully collapse tree CID #1010. If you save the tabset and make changes that are not saved, XY should startup in the saved configuration provided you're not saving settings on exit in Configuration.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Re: Configuring Pane Display at Startup

Post by TestMeister »

Perfect, many thanks!! :appl:

TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Re: Configuring Pane Display at Startup

Post by TestMeister »

Hi

I'm coming back on this because I am trying to always open XY with the tree fully collapsed.

My shortcut launches with the argument /script="::#1010;"

When XY is closed with a drive tree expanded, when launched, it will still show the expanded tree and is not affected by whether "Save settings on exit" is enabled or disabled.

Am I using the correct command and syntax?

Thanks!

admin
Site Admin
Posts: 60557
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Configuring Pane Display at Startup

Post by admin »

No, #1010 does not work here. It only collapses the current folder, AND it does not work on "This PC".

Try this instead (#484 = Reset Tree):

Code: Select all

/script="::#484;"

TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Re: Configuring Pane Display at Startup

Post by TestMeister »

That's it, thanks! :appl:

TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Re: Configuring Pane Display at Startup

Post by TestMeister »

Win 10 x64
XY 21.40.0100

Coming back as this now no longer closes the tree. It has inconsistent behavior depending on the state of the tree when XY is closed.
Sometimes it will close the C: drive and leave network drives open, other times it will close all the network drives and leave the C: drive open at the last positioned subfolder

My XY shortcut

Target: C:\MyPrograms\XYplorer\XYplorer.exe /script="::#484;"
Start in: C:\MyPrograms\XYplorer

ScreenHunter 2391.png
ScreenHunter 2391.png (21 KiB) Viewed 1608 times

admin
Site Admin
Posts: 60557
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Configuring Pane Display at Startup

Post by admin »

You mean it stopped working recently?

TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Re: Configuring Pane Display at Startup

Post by TestMeister »

Yes unless I somehow changed another config option that causes it to fail.
Here's my current config where I don't save settings but it still won't reset the tree and lists
Last edited by TestMeister on 15 Jan 2021 19:07, edited 1 time in total.

admin
Site Admin
Posts: 60557
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Configuring Pane Display at Startup

Post by admin »

Did you already try to reproduce it with a fresh instance? This is an easy way to determine whether any user settings play a role, and it would be easier for me to reproduce it.

TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Re: Configuring Pane Display at Startup

Post by TestMeister »

Sorry Don, not sure what you mean by a fresh instance.
Multiple times I have closed it, rebooted and the behavior persists.
*
As it turns out, I created a work around...a tool bar button that collapses all my drives so we can just defer this issue.

Here is my script which may not be the most elegant solution:

goto "Z:\";#1010;goto "Y:\";#1010;goto "X:\";#1010;goto "S:\";#1010;goto "C:\";#1010;

Thanks for the help!

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Configuring Pane Display at Startup

Post by highend »

Sorry Don, not sure what you mean by a fresh instance
Execute fresh; from the address bar?
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60557
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Configuring Pane Display at Startup

Post by admin »

Well, a workaround. I would have loved to fix anything here, but as I said, I cannot reproduce the issue.

So, let's close it for now.

Post Reply