Run CMD Command in Workflow

Hi @JGebhard , you should be able to achieve this by adding the following node:

Alternatively, without installing additional nodes, if you create a command file (e.g. .cmd or .bat file) containing the script to be executed, you can open (execute) that using this component:

Configure "location type as “absolute path” and give it the full path to the cmd file, and tick the “Physically open location or execute file” option.

(I have workflows that do exactly that, e.g. for running gitlabs commands to check in a bunch of files that I have transferred in a workflow.)

Or if you are just calling an executable, you should be able to give it the full path of the .exe file, but if you are also passing parameters, then I would think creating the cmd file is the way to go. If it needs to be dynamic, there’s nothing to stop you actually creating the cmd file as part of your workflow of course… :wink:

1 Like