Page 1 of 1

Enter random subfolder

Posted: 13 Nov 2025 07:51
by acm610154
Hi all,

I’m looking for a script that allows me to enter a random subfolder under the current directory.
I’m really hoping that someone can help me with this.

Thanks in advance!

Re: Enter random subfolder

Posted: 13 Nov 2025 08:13
by highend

Code: Select all

    $folders = listpane(2:=2);
    $count   = gettoken($folders, "count", "|");
    if ($count) { goto gettoken($folders, rand(1, $count), "|"); }

Re: Enter random subfolder

Posted: 13 Nov 2025 08:59
by acm610154
It works perfectly!
Thanks so much for your help! :biggrin: