How to pick files in subfolder using Virtual Folder (vi)

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
taufan
Posts: 48
Joined: 22 Mar 2020 02:33

How to pick files in subfolder using Virtual Folder (vi)

Post by taufan »

I'm Using Variables in Virtual Folders to pick 4 files.
My question is how vi scans my subfolder inside "taufan" folder, i try variable below but didn't work:

Code: Select all

vi:<get pick 4 "C:\Users\taufan\*" /d>

Code: Select all

vi:<get pick 4 "C:\Users\taufan\*" /flatfiles>

FYI, "taufan" folder contains 3 folder:
taufan/orange
taufan/green
taufan/black

Actually the variable below succeeded in realizing my goal:

Code: Select all

vi:<get pick 4 "C:\Users\taufan\orange">|<get pick 4 "C:\Users\taufan\green">|<get pick 4 "C:\Users\taufan\black">
But that method need to write too long, can it be simpler by detecting subfolders directly?
Any idea?
Thanks.

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

Re: How to pick files in subfolder using Virtual Folder (vi)

Post by highend »

You did read the help file?

There is no recursion, just first level.^^
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How to pick files in subfolder using Virtual Folder (vi)

Post by jupe »

You can still do what you want via scripting though, here is one way.

goto "vi:" . quicksearch("/lpd=4 /f", "C:\Users\taufan");

Of course alternatively you could just display it as a quicksearch instead of in a vi:, which would be way less typing and no scripting involved.

taufan
Posts: 48
Joined: 22 Mar 2020 02:33

Re: How to pick files in subfolder using Virtual Folder (vi)

Post by taufan »

jupe wrote: 13 Nov 2024 22:29
goto "vi:" . quicksearch("/lpd=4 /f", "C:\Users\taufan");

Thanks, it works.
The only drawback of this method is that when we refresh the page it does not change with another image randomly.
But it gives me another perspective to learn this.
Thank you very much ^_^

Post Reply