Second Favorite Foldres button

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
dadep
Posts: 26
Joined: 17 Jan 2024 15:23

Second Favorite Foldres button

Post by dadep »

Hello,
I already have on the toolbar the button for general favorite folders.
Would it be possible to easily have a second button for only a subset of favorite folders that all belong to a single root folder, like this:

Favorite #1: \\Root_Folder\Folder01
Favorite #2: \\Root_Folder\Folder02
Favorite #2: \\Root_Folder\Folder03

thanks in advance
best regards
davide

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

Re: Second Favorite Foldres button

Post by highend »

Script it?

Code: Select all

\\Root_Folder\Folder01
\\Root_Folder\Folder02
\\Root_Folder\Folder03
...
One of my scripts helped you out? Please donate via Paypal

dadep
Posts: 26
Joined: 17 Jan 2024 15:23

Re: Second Favorite Foldres button

Post by dadep »

highend wrote: 22 Sep 2025 11:27 Script it?

Code: Select all

\\Root_Folder\Folder01
\\Root_Folder\Folder02
\\Root_Folder\Folder03
...
thank you. It works (I'm not so smart with scripting, I'm a basic user)

dadep
Posts: 26
Joined: 17 Jan 2024 15:23

Re: Second Favorite Foldres button

Post by dadep »

Hello,
I create a button with this On left-click rule:

\\lishare.sistemi.local\commerciali
\\lishare.sistemi.local\commerciali\Clienti
\\lishare.sistemi.local\commerciali\GARE pubbliche
\\lishare.sistemi.local\commerciali\partner\Partner_Tecnologici
\\lishare.sistemi.local\commerciali\Protocollo
\\lishare.sistemi.local\Progetti
\\lishare.sistemi.local\commerciali\Marketing\Campagne

And when I click on this button I see only the last folder of the path (Clienti, Campagne, ......)

Is possible to set a label as normal favorites buttone, the is linked to alias configuration (for example Campagne=@Marketing, Clienti=@Commerciali) ?

thank you

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

Re: Second Favorite Foldres button

Post by highend »

Then do it like this:

Code: Select all

    $favorites = <<<>>>
\\lishare.sistemi.local\commerciali
\\lishare.sistemi.local\commerciali\Clienti
\\lishare.sistemi.local\commerciali\GARE pubbliche
\\lishare.sistemi.local\commerciali\partner\Partner_Tecnologici
\\lishare.sistemi.local\commerciali\Protocollo
\\lishare.sistemi.local\Progetti
\\lishare.sistemi.local\commerciali\Marketing\Campagne
    >>>;
    $favorites = regexreplace($favorites, "^(.+?)(?=$)", "$1|$1|$1");

    $sel = popupmenu($favorites, 6:=<crlf>, 7:="|");
    if ($sel) { goto $sel; }
One of my scripts helped you out? Please donate via Paypal

dadep
Posts: 26
Joined: 17 Jan 2024 15:23

Re: Second Favorite Foldres button

Post by dadep »

highend wrote: 23 Sep 2025 12:13 Then do it like this:

Code: Select all

    $favorites = <<<>>>
\\lishare.sistemi.local\commerciali
\\lishare.sistemi.local\commerciali\Clienti
\\lishare.sistemi.local\commerciali\GARE pubbliche
\\lishare.sistemi.local\commerciali\partner\Partner_Tecnologici
\\lishare.sistemi.local\commerciali\Protocollo
\\lishare.sistemi.local\Progetti
\\lishare.sistemi.local\commerciali\Marketing\Campagne
    >>>;
    $favorites = regexreplace($favorites, "^(.+?)(?=$)", "$1|$1|$1");

    $sel = popupmenu($favorites, 6:=<crlf>, 7:="|");
    if ($sel) { goto $sel; }
Thank you so much again.
Davide

Post Reply