Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

TCC in place of CMD

Jul
361
1
If I asked this, apologies. Is there any reason I couldn't always use TCC in place of CMD? And even "direct" my system to do the same?
 
If you're asking, "Can I make TCC the default handler for .BAT and .CMD files?" then yes you certainly can. TCCBATCH.BTM in your install directory can do it (you'd have to run it elevated).

But it might not be a good idea. Some batch files — badly-written ones, IMO — may not play nicely with TCC.
 
I was afraid you'd say that, Charles. Too bad, since CMD is pretty rigid where TCC is much less so.
 
You might try to use cmd for .bat and .cmd files, and use TCC for .btm files.
It is just an idea, You should test it on Your pcs.
regards
Rodolfo Giovanninetti
 
I think @Rodolfo has the right idea. Every script I write for TCC has the .BTM extension. Every script I write for CMD (which are few) has the .BAT extansion. It's been that way for decades and it works just fine. I couldn't care less if a script runs in both. I run third-party BATs in CMD to avoid any surprises. One, VCVARS64.BAT, which is rather complicated, works OK in TCC.
 
I have been running all .BAT, .CMD, and .BTM files in TCC for decades. On rare occasions I'll run across a badly-written .CMD that is using undocumented / buggy CMD.EXE behavior; that can almost always be resolved by setting the appropriate directives in TCMD.INI (notably "DuplicateBugs", but see also see the "CMD*" options in the help under Advanced Directives.

It generally comes down to how many TCC features you're willing to give up by enabling those options to get perfect CMD.EXE compatibility. Which doesn't exist, because I've seen some *.CMD files which only work in specific versions of CMD.EXE.
 
Hi guys, in your experience, what are the settings for the TCMD.ini file to have the most compatible results with CMD?

Actually these are mines, but some batch (that works correctly in CMD) fails using TCC:

[4NT]
CMDVariables=Yes
DecimalChar=.
DelayedExpansion=Yes
DelGlobalQuery=No
DuplicateBugs=Yes
ExecWait=Yes
UnixPaths=Yes
Win32SFNSearch=Yes
Wow64FsRedirection=Yes

Thank you for your support!
 
Hi guys, in your experience, what are the settings for the TCMD.ini file to have the most compatible results with CMD?
When Take Command is first installed, there is an option to run all *.bat and *.cmd files with CMD.EXE, and all *.btm files with TCC.EXE. That is the option I have chosen. This way, I never have any problems with third-party batch files (e.g., files from Cygwin, or Git for Windows, etc.) because they run under CMD, not TCC. On my system, only *.btm files run under TCC.

I don't see a way to set this up under the Options menu or in TCMD.INI, because I think executable extensions must be configured in the Windows Registry outside of Take Command. Hope this helps.
 
When Take Command is first installed, there is an option to run all *.bat and *.cmd files with CMD.EXE, and all *.btm files with TCC.EXE. That is the option I have chosen. This way, I never have any problems with third-party batch files (e.g., files from Cygwin, or Git for Windows, etc.) because they run under CMD, not TCC. On my system, only *.btm files run under TCC.

I don't see a way to set this up under the Options menu or in TCMD.INI, because I think executable extensions must be configured in the Windows Registry outside of Take Command. Hope this helps.
I thank you!
 
Back
Top