Existence of folder under unknown folder

(imported topic written by Steve91)

Hi Guys

I seem to be struggling with this one but could swear I’ve done this before, just can’t find my relevance.

I need to check for the existence of a folder under a folder that I don’t know the name of (but do know the first 2 characters) under a root folder

i.e.:

exists folder 1

exists folder 2 in folder 1 and folder 2 name starts with “pp”

exists folder “installedApps” in folder whose name starts with “pp” (i.e. folder 2)

What I would end up with if it exists is “D:\Folder1\pprandomname\installedApps”

Help appreciated

Cheers

Steve

(imported comment written by sstroffo91)

Try this:

Pathnames of folders whose (name of it as lowercase = “installedapps”) of folders whose (first 2 of names of it as lowercase = “pp”) of folder “D:\Folder1”