Turning a subfolder name into a parameter

If I run this command in fixletdebugger:

pathnames of it of descendant folders of folder “C:\tmp\drivers-cab” as string

I get a long list of pathnames…

C:\tmp\drivers-cab\E7450
C:\tmp\drivers-cab\E7450\win10
C:\tmp\drivers-cab\E7450\win10\x64
C:\tmp\drivers-cab\E7450\win10\x64\audio
C:\tmp\drivers-cab\E7450\win10\x64\audio\DDG39_A06-00
C:\tmp\drivers-cab\E7450\win10\x64\audio\DDG39_A06-00\production
C:\tmp\drivers-cab\E7450\win10\x64\audio\DDG39_A06-00\production\Windows10-x6

etc…

I am looking to grab just the variable “E7450” to use as a parameter. I can’t seem to narrow it down to only the first listing, “descendant folders” always seems to want to go through all the nested folders.

name of it of descendant folders of folder “C:\tmp\drivers-cab” as string

this shows just the name of the first folder, but errors because it’s a non-singular object.

“E7450” should be the only folder inside drivers-cab, and it should contain a subfolder named “win10”.

any clues how I can reliably put the E7450 into a parameter?

Could you not just pull the folder name of folders in the parent, eg

Q: names of folders of folders "C:\tmp\drivers-cab"
A: E7450
T: 0.542 ms

or if you wanted only a specific folder

Q: names of folders whose (name of it as string as uppercase = "E7450") of folders "C:\tmp\drivers-cab"
A: E7450
T: 0.567 ms
1 Like

that seems to be it, i knew there must be a simpler way! thank you!