TOTAL-TALLY commands for Bitfocus Companion
Shell action from Companion 2.4.2 through Companion 5.0.7

Use a button press action. The command is the full path to the bat file only.
Do not put start in front of it.
Do not put file:/// in front of it.
Do not put cmd.exe in front of it.
start and file:/// are what make Windows show the Run security prompt.
Do not add quotes unless the folder path contains a space.
Timeout stays 5000. Target Variable (stdout) stays None.

Replace the folder below with the real folder on that PC.
The tally bat must be the one from TOTAL-TALLY 0.4.4 or newer.
Delete the old start and file:/// text from the Command box, then paste the path again.

  Tally bat:  C:\Users\AV\Desktop\MICKY-WIZ-APPS\TOTAL-TALLY\start-tally.bat
  Tally folder: C:\Users\AV\Desktop\MICKY-WIZ-APPS\TOTAL-TALLY

  Relay bat:  C:\Users\AV\Desktop\MICKY-WIZ-APPS\companion-relay\start-relay.bat
  Relay folder: C:\Users\AV\Desktop\MICKY-WIZ-APPS\companion-relay

start-tally.bat starts the tally server if it is not already running,
then opens http://127.0.0.1:8787/
start-relay.bat opens the companion relay window.


COMPANION 2.4.2
Action name: Run shell path

  Path:    C:\Users\AV\Desktop\MICKY-WIZ-APPS\TOTAL-TALLY\start-tally.bat
  Timeout: 5000

There is no Working Directory box on 2.4.2. The bat changes to its own folder.
For the relay, put start-relay.bat in Path instead.


COMPANION 3.0 THROUGH 4.2
Action name: internal: System: Run shell path (local)

  Path:    C:\Users\AV\Desktop\MICKY-WIZ-APPS\TOTAL-TALLY\start-tally.bat
  Timeout: 5000
  Target Variable (stdout): None

There is no Working Directory box in these versions.
For the relay, put start-relay.bat in Path instead.


COMPANION 4.3 AND COMPANION 5
Action name: internal: System: Run shell command (local)
This is the screen with Command, Working Directory, Timeout, and Target Variable.

  Command:           C:\Users\AV\Desktop\MICKY-WIZ-APPS\TOTAL-TALLY\start-tally.bat
  Working Directory: C:\Users\AV\Desktop\MICKY-WIZ-APPS\TOTAL-TALLY
  Timeout:           5000
  Target Variable (stdout): None

For the relay, use the relay bat path and the relay folder in those same two boxes.

Companion 5 hides this action until shell commands are turned on.
If the button says "Running shell commands is disabled", turn the feature on,
then restart Companion. Either:

  Start Companion with the flag --enable-shell-command-support

or set this environment variable before Companion starts:

  COMPANION_ENABLE_SHELL_COMMAND_SUPPORT=1

Companion 4.3 does not need that flag. Companion 5 does.


IF THE FOLDER PATH HAS A SPACE
Wrap the whole path in quotes in the Path or Command box.
Example:
  "C:\Users\AV\Desktop\My Apps\TOTAL-TALLY\start-tally.bat"
Working Directory, on 4.3 and 5, gets the same quotes when it has a space.
2.4.2, 3.x, and 4.0 through 4.2 have no Working Directory box.
