Hi,
is it possible run a dos command from OB2 ?
I need to open external application.
Thank’s.
Hi, yes it’s possible. Use the shell block and then call the application you want (point it to the executable of your app) with the arguments you want.
I tried this simple test but OB2 crashes
You have to give it the full path. Please try this
BLOCK:ShellCommand
executable = "C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe"
arguments = $"dir"
=> VAR @shellCommandOutput
ENDBLOCK
To call an external program from PowerShell you can use the &
operation
BLOCK:ShellCommand
executable = "C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe"
arguments = $"& 'C:\\Program Files\\MyProgram\\program.exe'"
=> VAR @shellCommandOutput
ENDBLOCK
It works Thanks.
You are the number one.
1 Like
I made a mistake and unintentionally canceled it, however I solved it thanks.
1 Like
i confirm: it works fine !
1 Like