[SOLVED] Show removable drives on Mini Tree when plugged in

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

[SOLVED] Show removable drives on Mini Tree when plugged in

Post by Leito »

The USB drives I plug into my computer are not shown on the Mini Tree until I browse inside the USB drive. Is there any option to force them to show up when plugged in?
Last edited by Leito on 18 May 2018 15:15, edited 1 time in total.

highend
Posts: 13311
Joined: 06 Feb 2011 00:33

Re: Show removable drives on Mini Tree when plugged in

Post by highend »

Don't use the mini tree (unlocked) that much, so I'd say USBDLM (http://www.uwe-sieber.de/usbdlm.html) and calling XY with a small script (refreshing the tree) would be an option ;)
One of my scripts helped you out? Please donate via Paypal

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Show removable drives on Mini Tree when plugged in

Post by Leito »

I should have pointed it out in my first post: I'm actually using the Mini Tree locked because I like to keep a list of my favorites folders, in a tree architecture (which the Catalogs don't offer).

But anyway, I don't think that would work because calling the "refresh tree" command on the Mini Tree (locked or unlocked) doesn't make my USB drives show up.

highend
Posts: 13311
Joined: 06 Feb 2011 00:33

Re: Show removable drives on Mini Tree when plugged in

Post by highend »

It wasn't the command "Refresh tree", I was just talking about refreshing the tree.

The command to send for the /script= param is

Code: Select all

loadtree "%drive%", 1;
for USBDLM

Which adds the new drive to XY's mini tree. Even the locked one.

E.g. (only the OnArrival section)!

Code: Select all

[OnArrival5]
BusType=USB
DeviceID1=USBSTOR\<blablabla>
open="D:\Users\%USERNAME%\Tools\XYplorer\XYplorer.exe" /script="::loadtree '%Drive%', 1;" /flg=2
One of my scripts helped you out? Please donate via Paypal

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Show removable drives on Mini Tree when plugged in

Post by Leito »

I'll try that but I think it would be better if the Mini Tree (locked or not) would automatically add removable drives when plugged in like the Tree does. I don't see any benefit from not doing it.

Should I ask that in the Wishes section? :)

highend
Posts: 13311
Joined: 06 Feb 2011 00:33

Re: Show removable drives on Mini Tree when plugged in

Post by highend »

A locked mini tree is... locked. It shouldn't add anything that is not user initiated. Why it doesn't do so on a non-locked minitree...
Don't know if this is a bug or by design. Don?
One of my scripts helped you out? Please donate via Paypal

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

Re: Show removable drives on Mini Tree when plugged in

Post by admin »

Design. The Mini Tree does not forget the drives when you unplug them, so show them once in the tree (e.g. by going there) and you have them forever.

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Show removable drives on Mini Tree when plugged in

Post by Leito »

But when I do a Refresh (F5), those drives are removed from the Mini Tree if they're unplugged. :(

(I use F5 sometimes to see the current size of a file being copied, or just to make sure my list on a network drive is refreshed after moving files)

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

Re: Show removable drives on Mini Tree when plugged in

Post by admin »

Did you already tick this?
Configuration | Controls and More | Miscellaneous | Allow zombies in the Mini Tree

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Show removable drives on Mini Tree when plugged in

Post by Leito »

admin wrote:Did you already tick this?
Configuration | Controls and More | Miscellaneous | Allow zombies in the Mini Tree
Yes sir.

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

Re: Show removable drives on Mini Tree when plugged in

Post by admin »

OK, I changed that behavior. Next version unavailable drives are not removed when refreshing a mini tree if zombies are allowed.

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Show removable drives on Mini Tree when plugged in

Post by Leito »

Thanks!

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

Re: Show removable drives on Mini Tree when plugged in

Post by admin »

Leito wrote:But when I do a Refresh (F5), those drives are removed from the Mini Tree if they're unplugged. :(

(I use F5 sometimes to see the current size of a file being copied, or just to make sure my list on a network drive is refreshed after moving files)
BTW, there is a cool tweak that makes F5 refresh only the list (not the tree) if the list is focused while pressing it. (If the tree is focused both Tree and List are refreshed.)

Code: Select all

RefreshListOnly=1

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Show removable drives on Mini Tree when plugged in

Post by Leito »

Thanks Don, I'll use that in the meantime. Does it refresh the list of both panes, or only the active pane?

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

Re: Show removable drives on Mini Tree when plugged in

Post by admin »

F5 does only the active pane (regardless of the tweak).

Post Reply