REN a TCC Tab from command line

May 30, 2008
235
2
With the TITLE command, or the TITLEPROMPT variable. (The variable takes precedence.)

Is there also a way to do the equivalent of right-clicking a tab in Take Command and renaming it manually? This has precedence over TITLE, TITLEPROMPT and all other title changes made by console-mode programs that run in the tab which makes it useful for setting a title that cannot be changed. But it would be nice to be able to do it from the command line instead of having to use the Take Command interface.
 

rconn

Administrator
Staff member
May 14, 2008
12,316
148
nikbackm wrote:

> ---Quote (Originally by Charles Dye)---
> With the TITLE command, or the TITLEPROMPT variable. (The variable takes precedence.)
> ---End Quote---
> Is there also a way to do the equivalent of right-clicking a tab in Take Command
> and renaming it manually? This has precedence over TITLE, TITLEPROMPT
and
> all other title changes made by console-mode programs that run in the
> tab which makes it useful for setting a title that cannot be changed. But
> it would be nice to be able to do it from the command line instead of
having
> to use the Take Command interface.

After you've set the title, change the UpdateTitle .INI directive to 0
(OPTION //UpdateTitle=No).

Rex Conn
JP Software
 
May 30, 2008
235
2
nikbackm wrote:


> and renaming it manually? This has precedence over TITLE, TITLEPROMPT
and
> all other title changes made by console-mode programs that run in the
> tab which makes it useful for setting a title that cannot be changed. But
> it would be nice to be able to do it from the command line instead of
having
> to use the Take Command interface.

After you've set the title, change the UpdateTitle .INI directive to 0
(OPTION //UpdateTitle=No).

Rex Conn
JP Software

I have "Update title" turned off for all TCC instances already. The problem with changing TC tab title usuaully occurs when I start another console-mode program from TCC (running in a tab) that changes the console title. This also causes the TC tab name to change unless it already has been assigned an explicit name (or been renamed).

But I wrote a separate thread for this already (I missed the moderation notice so I thougth the post in this thread was lost).
 

rconn

Administrator
Staff member
May 14, 2008
12,316
148
nikbackm wrote:

> ---Quote (Originally by rconn)---
> nikbackm wrote:
>
>
> > and renaming it manually? This has precedence over TITLE, TITLEPROMPT
> and
> > all other title changes made by console-mode programs that run in the
> > tab which makes it useful for setting a title that cannot be changed. But
> > it would be nice to be able to do it from the command line instead of
> having
> > to use the Take Command interface.
>
> After you've set the title, change the UpdateTitle .INI directive to 0
> (OPTION //UpdateTitle=No).
>
> Rex Conn
> JP Software
> ---End Quote---
> I have "Update title" turned off for all TCC instances already. The
> problem with changing TC tab title usuaully occurs when I start
> another console-mode program from TCC (running in a tab) that changes
> the console title. This also causes the TC tab name to change unless
> it already has been assigned an explicit name (or been renamed).

Then why not set the title in a startup tab -- that will prevent
anything (except a "rename tab") from changing it subsequently.

Rex Conn
JP Software
 
May 30, 2008
235
2
nikbackm wrote:


> problem with changing TC tab title usuaully occurs when I start
> another console-mode program from TCC (running in a tab) that changes
> the console title. This also causes the TC tab name to change unless
> it already has been assigned an explicit name (or been renamed).

Then why not set the title in a startup tab -- that will prevent
anything (except a "rename tab") from changing it subsequently.

Rex Conn
JP Software

Yes, I could do that but I prefer to start the new tabs dynamically (via an alias using START /TAB) as I don't use them all the time.

Therefore an extra switch to START for setting the tab name when "/TAB" is used would be quite useful, at least for me.
 

rconn

Administrator
Staff member
May 14, 2008
12,316
148
nikbackm wrote:

> ---Quote (Originally by rconn)---
> nikbackm wrote:
>
>
> > problem with changing TC tab title usuaully occurs when I start
> > another console-mode program from TCC (running in a tab) that changes
> > the console title. This also causes the TC tab name to change unless
> > it already has been assigned an explicit name (or been renamed).
>
> Then why not set the title in a startup tab -- that will prevent
> anything (except a "rename tab") from changing it subsequently.
>
> Rex Conn
> JP Software
> ---End Quote---
> Yes, I could do that but I prefer to start the new tabs dynamically
> (via an alias using START /TAB) as I don't use them all the time.

>
> Therefore an extra switch to START for setting the tab name when
> "/TAB" is used would be quite useful, at least for me.

I'll add that to the suggestion list for v11 (the v10 feature list was
frozen several weeks ago).

Rex Conn
JP Software
 
May 20, 2008
3,515
4
Elkridge, MD, USA
nikbackm wrote:
| ---Quote (Originally by rconn)---
|| nikbackm wrote:
||| problem with changing TC tab title usuaully occurs when I start
||| another console-mode program from TCC (running in a tab) that changes
||| the console title. This also causes the TC tab name to change unless
||| it already has been assigned an explicit name (or been renamed).
||
|| Then why not set the title in a startup tab -- that will prevent
|| anything (except a "rename tab") from changing it subsequently.
| ---End Quote---
| Yes, I could do that but I prefer to start the new tabs dynamically
| (via an alias using START /TAB) as I don't use them all the time.
|
| Therefore an extra switch to START for setting the tab name when
| "/TAB" is used would be quite useful, at least for me.

Check the syntax of the START command. It provides for a "title" parameter.
Though I have not tested it, it ought to allow you to provide the tab title,
just as it would become a window title when used without the /TAB option.
--
HTH, Steve
 
May 30, 2008
235
2
nikbackm wrote:
| ---Quote (Originally by rconn)---
|| nikbackm wrote:
||| problem with changing TC tab title usuaully occurs when I start
||| another console-mode program from TCC (running in a tab) that changes
||| the console title. This also causes the TC tab name to change unless
||| it already has been assigned an explicit name (or been renamed).
||
|| Then why not set the title in a startup tab -- that will prevent
|| anything (except a "rename tab") from changing it subsequently.
| ---End Quote---
| Yes, I could do that but I prefer to start the new tabs dynamically
| (via an alias using START /TAB) as I don't use them all the time.
|
| Therefore an extra switch to START for setting the tab name when
| "/TAB" is used would be quite useful, at least for me.

Check the syntax of the START command. It provides for a "title" parameter.
Though I have not tested it, it ought to allow you to provide the tab title,
just as it would become a window title when used without the /TAB option.
--
HTH, Steve

Yes, it sets the console title but not the tab name (the tab seems to use the console title as its name only if the tab has not explicitly been given its own name), so if you later starts another console program in the tab that changes the console title then the tab name changes as well.
 
Similar threads
Thread starter Title Forum Replies Date
Jesse Heines Using Regular Expressions with the REN commanc Support 8
C Documentation Help Nit. REN / RENAME Support 0
D How to? Use regular expression with REN? Support 2
vefatica REN and NTFS streams? Support 3
samintz REN implied .* Support 2
F Regexes in REN/MOVE/… commands seem to not work at all Support 3
D How to? Wildcards as sets - looping issue with FOR and REN Support 7
samintz WAD Weird REN bug Support 6
S REN and FOR %a with files Support 8
nickles REN bug Support 11
Phileosophos ren /s does not process subdirectories Support 3
M Ren command confusion Support 13
S Strange REN problem - non-English characters Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Jay Sage Extra TCC Tasks Support 6
vefatica Can I turn off the minimize to tray mechanism in TCC? Support 5
N Command execution slows down in TCC Prompt after a while Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
samintz How to? Is this doable in TCC? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
D TCC tab detaching & restarting Support 3
Ó Recent git output not shown on TCC Support 1
P Kill all other instances of tcc from a btm batch file Support 2
L Using TCC.exe through an SSH connection Support 3
M TCC color issue in ConEmu Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0

Similar threads