Option to always CALL?

Apr 29, 2009
35
0
Redmond, WA
Is there an option to always CALL batch files without having to specify CALL? The default behavior for running an executable from a batch is to run the process, then continue executing the batch file. But it's different for batch files where running a batch from within a batch by default exits the first batch (unless you use CALL). It becomes a pain when there are a lot of batch files and you never really know if what you're calling is a batch or exec. It sure would help if there was a global option to always imply CALL to keep the behavior consistent.

== a.btm ==
b
echo continued

== b.btm ==
echo b

In this example "continued" wouldn't be shown. If b was an executable then "continue" would be shown. If there was an "Always CALL" option, then it wouldn't matter if b was an exec or batch, the behavior would be consistent. Not a big deal if you control b as well, but sometimes the whole point is that b can be switched out by someone else, may be a batch to today an exec tomorrow.

p.s. This option may already exist, if so it'd help for it to be mentioned in the CALL help section. If it doesn't exist, what do you think about adding it?
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
There isn't any option in TCC to do this -- it would be highly unpopular with people running legacy batch files!

TCC's current batch file chaining / calling handling is identical to CMD's. If you want to suggest it as a new feature for a future version, click on the orange "feedback" button .
 
Apr 29, 2009
35
0
Redmond, WA
There isn't any option in TCC to do this -- it would be highly unpopular with people running legacy batch files!

TCC's current batch file chaining / calling handling is identical to CMD's. If you want to suggest it as a new feature for a future version, click on the orange "feedback" button .

well good point, if I'd be calling any other batch files that depend on not returning from chaining another batch, turning on an option like this would break those, thanks for comment
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,461
88
Albuquerque, NM
prospero.unm.edu
Perhaps an option could be added which always defaults to OFF whenever a batch file is started. If you had to turn it on, say with AUTOCALL ON, in every batch file which uses that feature, then it shouldn't cause compatibility issues.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica I'd *always* like the "Preview" option Support 5
D Bug TCMD /X option Support 6
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
D Purpose of DIRHISTORY /N option Support 2
Peter Murschall OPTION //directive=value is a ENDLOCAL Support 3
Charles Dye Does HASH's /E option do anything? Support 1
Charles Dye ASSOCIATE loses /P option Support 4
A Documentation [Help file] OPTION "//" synopsis formatting issue Support 0
thorntonpg option /u not working The directory name is invalid Support 5
rps TCMD Tabs priority option setting Support 0
A How to? TCMD Configuration Dialog: 'Smooth Scrolling' Option missing? Support 1
A Fixed (CMD compat) START /D fails to recognize the switch option. Support 3
R Fixed 7ZIP Compression Method Option Doesn't Work Support 1
D everything /o does not open the option dialog Support 4
fishman@panix.com How do I make the selections in the option menu sticky? Support 23
vefatica OPTION /U Support 2
cgunhouse Foldermonitor with "/E" Option Issue Support 6
cgunhouse Foldermonitor with /W option Support 10
Alpengreis TCC-Option for EnableDelayedExpansion (!var!) problem Support 15
D The BatchEcho option Support 8
D /extract: option for the installer Support 4
fishman@panix.com Why are the OPTION settings not sticky??? Support 11
vefatica OPTION /U Support 1
vefatica TPIPE's /perl option? Support 1
I TC "Registering" but NOT Registering, Now Hung on TCMD Option Screen Support 2
cgunhouse IFTP "/S" Option Support 6
Alpengreis [TC 17.x] Install with "option /u" failed Support 5
cgunhouse Jabber Command Line Option Being Transmitted -- Fixed with Build 42 Support 2
Charles Dye OPTION dialog appears underneath Take Command window Support 4
Charles Dye OPTION /U, private beta to public Support 4
Alpengreis WAD Command "MSGBOX /?" does not show option /N Support 2
Phileosophos Fixed Option Dialog Hangs when Using Help Support 7
M Web Help option in Take Command 15 broken? Support 3
fpefpe How to? start command /tab option/switch Support 6
S How to? Find installer downloaded by "option /u"? Support 11
W /g option (%) on MOVE cmd appears broken TCC 14.03.57 x64 Support 8
Charles Dye Odd behavior after using OPTION "Advanced" tab Support 2
fishman@panix.com Option: Updates broken in Build 36 Support 3
S option /u question Support 19
R CompleteAllFiles missing in option? Support 1
S Directory history entries from /S option of various commands Support 2
Stefano Piccardi INIQuery option Support 1
M Missing PDir option... Support 5
vefatica OPTION /U Support 6
Jay Sage Version 12: No Option to Configure Toolbar Support 2
nickles OPTION "trims" long ColorDir directive Support 1
D Copy /n option order Support 5
G tcmd v11 installation option for pinning to taskbar Support 3
Joe Caverly START and the /TAB option Support 0

Similar threads