Open only the first file in a series of folders

Hey y’all,

I’m fairly new to this but am looking for some help.

I have a folder, and within that folder are about 400 subfolders. I’d like to be able to open the first file out of each subfolder in order. It’d be nice if I could manually locate the top-level folder, and then just have the bot open the first file in each folder from there.

Any advice would be greatly appreciated.

i’d use a foreach loop to loop through the folder > open last modified file > do something

So… screenshot:

Hey @Derek_Johnson

Just for a quick guidance check below sample to kick start :slight_smile: based on my understanding from your post.
Sample1.xaml (5.2 KB)


1 Like

Thanks, I’ll play around with this for a bit!

Take a look at @aksh1yadav - a lot better implementation!