Page 1 of 1
[Help]View/select multi folders s in different location by scripting
Posted: 20 Apr 2023 18:56
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
Re: [Help]View/select multi folders s in different location by scripting
Posted: 20 Apr 2023 19:01
by admin
No scripting needed:
e:\folder1;e:\folder2\subfolder3;e:\folder4\subfolder5?* /flat
Re: [Help]View/select multi folders s in different location by scripting
Posted: 20 Apr 2023 19:36
by xen
Thank you very much for the help
Re: [Help]View/select multi folders s in different location by scripting
Posted: 20 Apr 2023 19:45
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
Re: [Help]View/select multi folders s in different location by scripting
Posted: 20 Apr 2023 19:51
by admin
As a virtual folder (vi:...), separated by |:
vi:e:\folder1|e:\folder2\subfolder3|e:\folder4\subfolder5
Re: [Help]View/select multi folders s in different location by scripting
Posted: 20 Apr 2023 19:52
by highend
Or
Code: Select all
e:\folder1;e:\folder2\subfolder3;e:\folder4\subfolder5?* /d /flat
Re: [Help]View/select multi folders s in different location by scripting
Posted: 20 Apr 2023 19:57
by admin
Or
Code: Select all
e:\folder1;e:\folder2\subfolder3;e:\folder4\subfolder5?* /flatdirs
Re: [Help]View/select multi folders s in different location by scripting
Posted: 20 Apr 2023 20:17
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)
Re: [Help]View/select multi folders s in different location by scripting
Posted: 20 Apr 2023 20:54
by highend
If you don't want recursion, disable it? /dn instead of just /d
Re: [Help]View/select multi folders s in different location by scripting
Posted: 20 Apr 2023 20:58
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