Please enable JavaScript to view this site.

Take Command / TCC Help v. 26

+ is the current command separator. Use this pseudovariable, instead of the actual command separator, if you want your batch files and aliases to work in other users' environment regardless of how the command separator is defined.


WARNING: %+ should always be surrounded by spaces.


For example, if the command separator is an ampersand [&] (the default in TCC) both of the commands below will display "Hello" on one line and "world" on the next. However, if the command separator has been changed the first command will display "Hello & echo world", while the second command will continue to work as intended.


echo Hello & echo world

echo Hello %+ echo world


Note: %+ was introduced to allow running batch files from COMMAND.COM and 4DOS, and has been obsolete for years. It is deprecated as of Take Command v17, and most support has been removed in v20.