Coilean
Nov 11 2002, 22:39
When using tag to rename files, how can you escape the special meanings for A N L P T C inside the string you pass through --scheme?
QUOTE(Coilean @ Nov 12 2002 - 06:39 AM)
how can you escape the special meanings for A N L P T C inside the string you pass through --scheme?
Use '%' or '*' in front of the characters you want to have special meaning.
Coilean
Nov 12 2002, 17:14
Thanks,
My difficulty was that I wanted to do something like:
tag --move --rentag --scheme "C:\Music\Popular\A\L [mpc-q5.5]\A - L [N] T" --recursive *mpc
Well, there are 2 obvious problems with this, which I quickly discovered when I tried it using --test:
1) Tag doesn't understand the absolute pathname (it uses the current directory the file is in as the beginning of the new pathname)
2) Inside the string I passed to --scheme, all characters C L A were expanded (such as the "c" at the end of "Music"), yielding some pretty ugly filenames.
Your advice gets rid of problem #2, as using the "%" in front of the characters I want expanded gets rid of the inadvertant expansion of the other "C" "L" "a" characters I didn't want expanded. (Maybe the .txt help file could be updated so that the examples of parameter passing to --scheme use %A %T %L %N (etc.) instead of the bare A T L N?)
But I still am not sure if there is a way around #1.