Solved

Execute external program from TASK

  • 21 April 2023
  • 2 replies
  • 57 views

Userlevel 1
Badge +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?

icon

Best answer by MatteoSangiorgi 3 May 2023, 10:44

View original

This topic has been closed for comments

2 replies

Userlevel 6
Badge +16

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

Userlevel 1
Badge +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