INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: expression - display all files in these three paths  (Read 1551 times)

lise

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 943
expression - display all files in these three paths
« on: July 27, 2012, 09:34:35 am »

I'm having a hell of a time doing this very simple thing.

I want a view that displays all my cooking stuff, across three different drives:

C:\My Documents\Cooking
\\Lizzy\TV\Cooking
\\Lizzy\Pictures\Food

I started with the Disk Location scheme but that only shows one path.
I switched to an expression based scheme and tried:

Code: [Select]
=(FilePath([\\Lizzy\Pictures\Food\]) or FilePath([\\Lizzy\tv\Cooking\]) or FilePath([C:\My Documents\Cooking\]))
with and without the "=", with and without the "()" around the entire phrase, with and without the "or" and it is driving me mad.

I'm sure it is something super simple that I an not seeing.
Logged
A wise man once said don't count your years, but make your years count. Or was it beers?

lise

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 943
Re: expression - display all files in these three paths
« Reply #1 on: July 27, 2012, 10:08:40 am »

I would still like to know how to do this in order to create column in an existing view pane, but for the moment I just created a new scheme with the three paths as the basic rules for the scheme.
Logged
A wise man once said don't count your years, but make your years count. Or was it beers?

rjm

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2699
Re: expression - display all files in these three paths
« Reply #2 on: July 27, 2012, 10:22:47 am »

Try this.

Customize view\Set Rules for file display...

Filename(path) starts with \\Lizzy\Pictures\Food\
Filename(path) starts with \\Lizzy\tv\Cooking\
Filename(path) starts with C:\My Documents\Cooking\

Then put brackets () around the above to cause OR instead of AND.
Logged

lise

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 943
Re: expression - display all files in these three paths
« Reply #3 on: July 27, 2012, 10:54:10 am »

rjm, thanks. Yeah, that's what I ended up doing.
Originally, though, I didn't want to use those directories in the scheme rule but as a pane column, which requires using an expression to get all three directories.  Basically I wanted a pane that displayed much like the "base path" except that it didn't just look to one base path but three. Something like this:

column1

all files
\\Lizzy\Pictures\Food
\\Lizzy\tv\Cooking
C:\My Documents\Cooking

Column2: Subgenres
All subgenres
Appetizers
Meat
Vegetables
etc.
Logged
A wise man once said don't count your years, but make your years count. Or was it beers?

rjm

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2699
Re: expression - display all files in these three paths
« Reply #4 on: July 27, 2012, 11:00:55 am »

If you now set column 1 to filename path do you get exactly what you want?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: expression - display all files in these three paths
« Reply #5 on: July 27, 2012, 11:18:41 am »

For column 1, use a Search List with each search based on Filename (path), as shown in the attached screenshot.
Logged
The opinions I express represent my own folly.

lise

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 943
Re: expression - display all files in these three paths
« Reply #6 on: July 27, 2012, 11:33:39 am »

I'm such an idiot.
I use those types of searches in a gazillion schemes. I don't know why I was so intent on using an expression.
Thanks Mr C.
Logged
A wise man once said don't count your years, but make your years count. Or was it beers?

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: expression - display all files in these three paths
« Reply #7 on: July 27, 2012, 05:45:55 pm »

Quote
I don't know why I was so intent on using an expression.

Perhaps because the you who is not an idiot new it could be done if only you weren't trying so hard... ;)

[Filename (path)]&DataType=[List]

A Searchlist is probably a better solution if you just want to pick from three specific folders. Doing it this way, however, you don't have to be concerned where the files are, and it will present the paths as trees—just like Location does. So the expression may be better if any of the three folders have subfolders and you want the option to choose from them as well.
Logged
Pages: [1]   Go Up