Go to multiple folders

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
jsrocha
Posts: 4
Joined: 17 Feb 2022 18:25

Go to multiple folders

Post by jsrocha »

Hi guys, how´s going?
does anyone know if it is possible to use the "go to" tool to open multiple folders at the same time (in separate tabs)? For instance, i have a list of folder paths, paste into de go to box and then all the folders open in tabs.
Thanks in advance,

Jsrocha

Norn
Posts: 416
Joined: 24 Oct 2021 16:10

Re: Go to multiple folders

Post by Norn »

Code: Select all

 $tabs = input("Paths, one per line", , , "m", "cancel", 600, 600);
 if(!$tabs || $tabs == "cancel") {end 1==1}
 foreach($tab, $tabs, <crlf>, "e") {
    if(exists($tab) == 1) {tab("new", gpc($tab, "path")); selectitems $tab}
	else {
	   tab("newb", $tab)
	}
 }
Win10, Win11 @100% 2560x1440 22H2

jsrocha
Posts: 4
Joined: 17 Feb 2022 18:25

Re: Go to multiple folders

Post by jsrocha »

Wow, just what i need! Thanks man :)

Jsrocha

Post Reply