Page 1 of 1

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

Posted: 13 Nov 2024 22:08
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.

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

Posted: 13 Nov 2024 22:21
by highend
You did read the help file?

There is no recursion, just first level.^^

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

Posted: 13 Nov 2024 22:29
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.

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

Posted: 14 Nov 2024 15:14
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 ^_^