Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 3819

Total Commander (English) • Re: cm_Edit: how to get to that magical [ + ] button described in the command help?

$
0
0
2Sir_SiLvA
Thank you.
It was exactly the first idea that came into my mind a couple of days ago, so I went there and picked up the first thing there, and it just didn't work.
For example:
Let's say, I want to make an empty dummy file, that has to be named after the active directory I'm in.
In Multi-Rename-Tool syntax, under its [ + ] button, the directory would be [P].
Thus, I'm trying the following command syntax:

Code:

[em_dummy_file_probe]cmd=cm_Editparam=/C /N="[P].txt" /L0 /G
Literal result: [P].txt
The other attempts similar to that render errors, or no action at best.
The actual workable command here (using special internal parameters/variables):

Code:

[em_dummy_file_probe]cmd=cm_Editparam=/C /N="%B.txt" /L0 /G
where (%B):
%B, %B0..%B9
adds a directory name from the path (including the relative path from branch view, or the search result).
%B or %B0 = parent directory, %B1 = grandparent directory etc.
So what is the actual cm_Edit command syntax then, regarding the Multi-Rename-Tool approach (which puts everything in [brackets])?

Statistics: Posted by beb — 2024-02-06, 19:20 UTC



Viewing all articles
Browse latest Browse all 3819

Trending Articles