[Solved] Multi-rename tool problem - bug or suggestion ?

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
ben hub
Member
Member
Posts: 132
Joined: 2003-02-06, 21:47 UTC
Location: Madagascar

[Solved] Multi-rename tool problem - bug or suggestion ?

Post by *ben hub »

Hello folks,

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 :( , and without a "\" at the end - that's fine :).

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 :?:, I personnally am totally unable to do anything on a PC without it :oops: and that for almost 20 years :D
With my eternal gratitude to Christian.
Last edited by ben hub on 2014-07-05, 22:15 UTC, edited 1 time in total.
Benoît
# 4081
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

>> Sorry, I have the french version
You can easily switch the language to any other supported one.

"Chemin" == "Path"

>> with a "." (dot) instead of a ":"
Sure, since you can't use a colon in a file name.


>> only the name of the subdirectory in which the file is
In MRT press F1 key to read the help.

>> "Mysubdir blabla Myfilename"
Is Parent blabla Name, so use
[P] blabla [N]


.
User avatar
Dalai
Power Member
Power Member
Posts: 10021
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

No, it's not a bug. Path means the absolute unique location in the file system.

You can use [P] (or [G]) or the plugin FileX to get the name of the parent dir or grandparent dir.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ben hub
Member
Member
Posts: 132
Joined: 2003-02-06, 21:47 UTC
Location: Madagascar

Post by *ben hub »

Thanks to you, shame on me :oops:
Benoît
# 4081
Post Reply