I'd like to rename some files with the name of their subdirectory.
(Sorry, I have the french version of TC 8.51a 32bits under XP & 64bits under W8, some commands or parameters will be in french.)
When I try the mask "[=tc.Chemin]", it returns "U.\Mydir\Mysubdir", with a "." (dot) instead of a ":" after the unit


When I add the name of the file, i.e. the mask "[=tc.Chemin][N]", it returns "U.\Mydir\Mysubdir\Myfilename", with a backslash which appears before the filename, and I can't get rid of it

I guess it's not really a bug, but in fact, my wish is as follows :
Would it be possible to retrieve only the name of the subdirectory in which the file is, ie a TC module command that returns only the string "Mysubdir" without any backslash?
Something like "[=tc.DernierChemin] blabla [N]" which would return "Mysubdir blabla Myfilename" ?
-----------------------------
I don't know how people can do without TC



With my eternal gratitude to Christian.