Run a Program
Execute an external program or script
Preview
Parameters
Commandrequired
Text
The command or executable to run
This can contain anything you can normally execute via the Win+R Windows Run dialog or cmd
Examples:
- Executables
*.exe
node
python
- Batch Files
*.bat
- PowerShell Scripts
*.ps1
- URI
https://google.com
streamdeck://plugins/message/<PLUGIN_UUID>/<MESSAGE>
liv-app://camera/set/<CAMERA#>
Working Directory
Text
default:
Command Directory
The working directory for the executed command
Arguments
Text
Optional arguments or flags to pass to the executable
Powerful with variables!
Wait for Exit
Number
default:
0
Time to wait, in seconds, for the executable to complete.
You can use this option to populate variables with command output from scripts, such as
python
or nodejs
!Environment Variables
Table
Define any optional environment variables you would like to pass to the executable
Powerful with variables!
Variables
The following variables will be populated after executing this sub-action:
Description | ||
---|---|---|
output# | string | Each line of output, where output1 is line 1, output2 is line 2, and so on... Example: Hello, world! |
outputCount | int | Number of lines in output Example: 1 |