Question about [rename] section

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Question about [rename] section

Post by *ts4242 »

Hi,
when i working on the new version of my program TC History Cleaner i noticed that the key value under [Rename] section is always enclosed between quotation mark also it is not in most other Wincmd.ini sections
(the new version will show [rename] & [searches] :o )
Ex:

Code: Select all

[rename] 
abc.ers_name ="[N]" 
abc.ers_ext ="[E]" 
abc.ers_search ="abc" 
abc.ers_replace ="xyz" 
abc.ers_params =0|1|1|1 
EFG_name ="[N1-3][N5-]" 
EFG_ext ="[E][C]" 
EFG_search ="efg" 
EFG_replace ="HIJ" 
EFG_params =0|1|1|1
what can the reason?
is there is a special character can be used here and need to be enclosed between ""?
if you see this question is silly please don't laugh :evil: , as a programmer i need to know in order to not make a mistake?

thanks
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: Question about [rename] section

Post by *Sheepdog »

ts4242 wrote:what can the reason?
I guess it is for handling long filenames with spaces within the MRT. I can't imagine another possible reason.

By the way: It still seems to work properly if the quotation marks are removed.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Post Reply