Skip to main content
Answer

Execute external program from TASK

  • April 21, 2023
  • 2 replies
  • 58 views

Forum|alt.badge.img+4

My goal is to execute an external program with 4 parameters after the exe file, example:

C:\Bus.Cube2\Program.exe parameter1 parameter2 parameter3 parameter4

 

I’ve created a TASK with logic type “windows command” with 4 parameters:

par1

par2

par3

par4

 

and Objectname is:

C:\Bus.Cube2\Program.exe [par1] [par2] [par3] [par4]

 

But it does not work. If in object name i write mspaint.exe, it works.

Am I doing something wrong?

Best answer by MatteoSangiorgi

I solved it.

in the object name i don’t have to write:

C:\Bus.Cube2\Program.exe [par1] [par2] [par3] [par4]

but only the path to the exe file:

C:\Bus.Cube2\Program.exe

 

The parameters are passed automatically

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+17
  • Moderator
  • April 26, 2023

Do you get any error or what happens if you try to execute it?


Forum|alt.badge.img+4

I solved it.

in the object name i don’t have to write:

C:\Bus.Cube2\Program.exe [par1] [par2] [par3] [par4]

but only the path to the exe file:

C:\Bus.Cube2\Program.exe

 

The parameters are passed automatically