- Apr
- 35
- 0
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?
== 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?