I think I used to be able to do what the subject line says. I don't recall how and haven't found it in Help or in my notes.
CTRL-F to bring up the find box.
Enter a name to find.
Uncheck 'files' so the name entered searches only folders.
I used to put something in the 'additional rules' box, but here I am stuck.
I want to return a list of the the last folder name in the path, regardless of its name, from each path found containing the searched name.
Thank you for help.
Find folder name in path and return only last folder in path (any name)
Moderators: fgagnon, nikos, Site Mods
-
appyface
- Silver Member

- Posts: 260
- Joined: 2005 Jun 11, 16:48
-
nikos
- Site Admin

- Posts: 16344
- Joined: 2002 Feb 07, 15:57
- Location: UK
Re: Find folder name in path and return only last folder in path (any name)
I am not clear what you are trying to do. If you are searching for names, the NAMED field should be adequate. Or use the PATH additional property
-
johngalt
- Gold Member

- Posts: 653
- Joined: 2008 Feb 10, 19:41
- Location: 3rd Rock
Re: Find folder name in path and return only last folder in path (any name)
Are you trying to list only the folder name and not the full path? Is that what you mean by the 'last folder name'?
-
appyface
- Silver Member

- Posts: 260
- Joined: 2005 Jun 11, 16:48
Re: Find folder name in path and return only last folder in path (any name)
Yes list only the last folder name in the path.
Is it possible to return just the last folder name after searching for a folder name (or portion of a folder name) anywhere in the path?
c:\folder1\folderxyz\folder7
Search for "xyz" only in the full pathname
Return: folder7 in scrap pane
Is it possible to return just the last folder name after searching for a folder name (or portion of a folder name) anywhere in the path?
c:\folder1\folderxyz\folder7
Search for "xyz" only in the full pathname
Return: folder7 in scrap pane
-
Kilmatead
- Platinum Member

- Posts: 4842
- Joined: 2008 Sep 30, 06:52
- Location: Baile Átha Cliath
Re: Find folder name in path and return only last folder in path (any name)
Instead of typing your search into the "named" field, leave that empty, and define an "Additional Rule" where Path [S] contains the text you're looking for. In the scrap container results, the "Named" column will automatically be that of the last folder in any of the matching paths.
-
appyface
- Silver Member

- Posts: 260
- Joined: 2005 Jun 11, 16:48
Re: Find folder name in path and return only last folder in path (any name)
Ah! I was certain I had done this before, but it had been so long ago I didn't remember how. Thank you!
