INTERACT FORUM

More => Old Versions => JRiver Media Center 28 for Windows => Topic started by: AndreaT on January 30, 2022, 02:16:52 am

Title: SOLVED Needing some help for "tuning" an old customized view from "RD James"
Post by: AndreaT on January 30, 2022, 02:16:52 am
Hello,
in 2007 "RD James" kindly provided me the script
Code: [Select]
RemoveLeft(Replace([Filename (path)],;,;),3)&DataType=[list]
Title: Re: Needing some help for "tuning" an old customized view from "RD James"
Post by: blgentry on January 31, 2022, 08:08:46 am
A semicolon has lots of special meanings in computing.  Depending upon the language or platform, semicolon can mean several different things.  Because of this, I believe you should never have a semicolon in a filename or folder name.  There are other characters you could use, like space for example, that probably convey the meaning you want.

I'm fairly sure that you will disagree with me and that's ok.  I posted this on the off chance that you would consider changing your folder names.

Good luck to you either way.
Brian.
Title: Re: Needing some help for "tuning" an old customized view from "RD James"
Post by: AndreaT on January 31, 2022, 10:04:09 am
Hello Brian / blgentry,

thank you for your reply and, yes, I have to agree with you, as well as also many other chars accepted by Windows filesystem naming have special meaning (+ - ! = ,).
So, almost impossible for me to guess years in advance (10+ years away) what chars I should not use.

Anyway, my library has now almost 7000 top level folders and many other subs... and I cannot check one by one in search of ";".
Do you have any idea of how to have some kind of automated reporting/listing of these directories?

And, again, really there is no solution / optimization at the old 2017 .jvi file/script from RD James?
I tried to modify it by myself, but I could only do worse, a lot worse, than the original.

Thank you and regards, Andrea
Title: Re: Needing some help for "tuning" an old customized view from "RD James"
Post by: blgentry on January 31, 2022, 01:13:14 pm
You can easily check for the presence of various characters in your filenames or folder names.  Start with the built in Files view under Audio > Files in the left navigation area.  In the file list, you should see column for filename.  That will show the full path including the drive, folders, and the file itself.

Now, go to the search box at the upper right and paste this in:

Code: [Select]
[filename (path)]=;
This will show any file name that has FOLDERS with a semicolon in it.  If you want to check the filename too, you can do that as well.

Good luck.
Brian.
Title: SOLVED Re: Needing some help for "tuning" an old customized view from "RD James"
Post by: AndreaT on February 03, 2022, 10:09:22 am
Hello, thank you all for your kind support.

I found a solution and I share it in case others would be interested in.

This is the correct expression to use:
Code: [Select]
RemoveLeft(Replace([Filename (path)],;,|),3)&DataType=[list]
Regards, Andrea