INTERACT FORUM
More => Old Versions => JRiver Media Center 19 for Windows => Topic started by: pierre.goyette on February 22, 2014, 08:59:13 pm
-
Media Center nicely changes all special characters such as a colon to an underscore when renaming files.
I would prefer a dash "-" instead of an underscore when renaming files/directories. I looked all over to see if this was configurable but cannot find it.
Cna I change the replacement character and if so, where ?
TIA
-
Rename internally uses the function Clean() (http://wiki.jriver.com/index.php/Expression_Language#Clean) in mode 3. So you have to do your own replacement before Rename gets a hold of it. Like this, if your Rename template is:
[Track #] - [Name]
you might do:
replace([Track #] - [Name], :, -)
which replaces a colon character with a dash, whereby Rename is happy. To do this for all the other characters as well, you can either nest loads of Replace() (http://wiki.jriver.com/index.php/Expression_Language#Replace) calls, or do this trick:
replace(clean([Track #] - [Name], 3), _, -)
which Cleans() the string first, converting FS illegal characters to underscore, and the Replace() converts those to dash characters.
-
Awesome ! That did the trick. Thanks. :)