[Help]View/select multi folders s in different location by scripting

Discuss and share scripts and script files...
Post Reply
xen
Posts: 52
Joined: 27 Mar 2013 03:57

[Help]View/select multi folders s in different location by scripting

Post by xen »

Hi, i want to view/select multi folders in different location (but still in local computer) - in a new tab of xyplorer
For more clearly , i have text like this

Code: Select all

e:\folder1
e:\folder2\subfolder3
e:\folder4\subfolder5
and i want to select /view all of them in a new xyplorer tab



i know how to do that with files (by using "flatview" in scripting) , like this

Code: Select all

 $content = <clipboard>;
 $content = "$content" . <crlf>;
 $files = "";
    foreach($entry, $content, <crlf>, "e")
 	{
		if (exists($entry))
			{ 
			$files = $files . $entry . ";";
			}
	}
	$files = $files . "?* /n /:flat";
	goto $files;

but i have no idea how to do that with folder, (if we do the same with folders, it displays the folder contents, not the folder itself)
Any help would be much appreciated

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

Re: [Help]View/select multi folders s in different location by scripting

Post by admin »

No scripting needed:
e:\folder1;e:\folder2\subfolder3;e:\folder4\subfolder5?* /flat

xen
Posts: 52
Joined: 27 Mar 2013 03:57

Re: [Help]View/select multi folders s in different location by scripting

Post by xen »

Thank you very much for the help

xen
Posts: 52
Joined: 27 Mar 2013 03:57

Re: [Help]View/select multi folders s in different location by scripting

Post by xen »

admin wrote: 20 Apr 2023 19:01 No scripting needed:
e:\folder1;e:\folder2\subfolder3;e:\folder4\subfolder5?* /flat
Thank you for the help
your command is similar to my script,it also display all the files in those folders
that makes the process slower to display all contents, while i just want to display folders
is it possible to display only the items in the list (in this case is the folders , not files)
Thanks

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

Re: [Help]View/select multi folders s in different location by scripting

Post by admin »

As a virtual folder (vi:...), separated by |:
vi:e:\folder1|e:\folder2\subfolder3|e:\folder4\subfolder5

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

Re: [Help]View/select multi folders s in different location by scripting

Post by highend »

Or

Code: Select all

e:\folder1;e:\folder2\subfolder3;e:\folder4\subfolder5?* /d /flat
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

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

Re: [Help]View/select multi folders s in different location by scripting

Post by admin »

Or

Code: Select all

e:\folder1;e:\folder2\subfolder3;e:\folder4\subfolder5?* /flatdirs

xen
Posts: 52
Joined: 27 Mar 2013 03:57

Re: [Help]View/select multi folders s in different location by scripting

Post by xen »

admin wrote: 20 Apr 2023 19:57 Or

Code: Select all

e:\folder1;e:\folder2\subfolder3;e:\folder4\subfolder5?* /flatdirs
Thank you very much , admin and highend , i really appreciated
The virtual command method works fine , it also works with files
(the other commands also display subfolders (of the folder in the list),while i just want to display the folder in list)

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

Re: [Help]View/select multi folders s in different location by scripting

Post by highend »

If you don't want recursion, disable it? /dn instead of just /d
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

xen
Posts: 52
Joined: 27 Mar 2013 03:57

Re: [Help]View/select multi folders s in different location by scripting

Post by xen »

highend wrote: 20 Apr 2023 20:54 If you don't want recursion, disable it? /dn instead of just /d
Thank you very much, i will try it

Post Reply