Enter random subfolder

Discuss and share scripts and script files...
Post Reply
acm610154
Posts: 3
Joined: 11 Oct 2018 18:58

Enter random subfolder

Post 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!

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

Re: Enter random subfolder

Post by highend »

Code: Select all

    $folders = listpane(2:=2);
    $count   = gettoken($folders, "count", "|");
    if ($count) { goto gettoken($folders, rand(1, $count), "|"); }
One of my scripts helped you out? Please donate via Paypal

acm610154
Posts: 3
Joined: 11 Oct 2018 18:58

Re: Enter random subfolder

Post by acm610154 »

It works perfectly!
Thanks so much for your help! :biggrin:

Post Reply