PROMT command in TCSTART.BTM

Aug 27, 2008
26
0
I'm running v10 on a Windows 7 machine. (Running 64-bit Windows 7.) I have the following command in my TCSTART.BTM:

PROMPT $z-$P$_===$g

I launch 4nt through a shortcut on my desktop. (I use 4NT.exe, not TCC.exe) My prompt correctly indicates that I am at shell 0. Hoever, if I type 4nt at the command prompt, the PROMPT still says shell #0. I know I am in a nested shell though, because it takes me two "exit"s to close the window.

Any ideas? (_shell seems to always be 0).
Thanks.

Greg
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
I'm running v10 on a Windows 7 machine. (Running 64-bit Windows 7.) I have the following command in my TCSTART.BTM:

PROMPT $z-$P$_===$g

I launch 4nt through a shortcut on my desktop. (I use 4NT.exe, not TCC.exe) My prompt correctly indicates that I am at shell 0. Hoever, if I type 4nt at the command prompt, the PROMPT still says shell #0. I know I am in a nested shell though, because it takes me two "exit"s to close the window.

Any ideas? (_shell seems to always be 0).

Use TCC.EXE instead -- %_SHELL depends on finding a parent TCC.EXE process. (4NT.EXE is a copy of TCC.EXE, so everything else will behave the same.)
 
Aug 27, 2008
26
0
Use TCC.EXE instead -- %_SHELL depends on finding a parent TCC.EXE process. (4NT.EXE is a copy of TCC.EXE, so everything else will behave the same.)

Thanks Rex. So, what's the best way to solve this, given that I want use 4NT, and not TCC. (I'm a long-time 4NT purist. :))

Anyway, I tried launching my 4nt window, and then executing a series of "TCC" commands to create nested TCC shells. Again, I do not see the correct shell number incrementing from the PROMPT $z command. I was expecting this to increment with successive TCC commands.

So, basically two questions: 1. What's the cleanest way to solve this with "4NT" as my main command interface? 2. Why does my test with TCC also fail?

Additional info:
Comspec=<My_Path><MY_PATH>4nt.exe

Thanks again. Great tool!

Greg
 
May 20, 2008
11,388
99
Syracuse, NY, USA
On Mon, 12 Oct 2009 22:52:58 -0500, Greg Wells <> wrote:

|So, basically two questions: 1. What's the cleanest way to solve this with "4NT" as my main command interface? 2. Why does my test with TCC also fail?

If a 4nt.exe starts a tcc.exe, you won't get a new shell number (as Rex said,
tcc looks for a tcc parent). But if from the new tcc, you start another new tcc
you will get a new shell number (because the parent tcc was found).

The solution: always use tcc (it's the same program).

It **is** the new name of the (good old) product.
--
- Vince
 
Similar threads
Thread starter Title Forum Replies Date
T Calling a BTM-file from explorer stops at promt after updating to 14 Support 7
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
K Take Command fox XP? Support 7
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
fpefpe How to? command echo in title line/bar Support 2
U Command help on file names Support 5
vefatica Command line DO with no closing parenthesis? Support 9
vefatica Command history search is off Support 7
H How to? How can I say "if the command separator is not ~ then setdos /C~" Support 8
N Command execution slows down in TCC Prompt after a while Support 6
R Long commands retrieved from command history have blank line when wrapped Support 20
jpeni Take Command Language Examples Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
fpefpe winfr command Support 4
Dmitry L. Kobyakov Fixed The SETARRAY /R command works incorrectly with cyrillic files Support 2
M Selecting test "off by one" problem in Take command Support 4
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
R How to? Open Take Command at current folder Support 7
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
C TEE command appending null characters to output Support 6

Similar threads