Skip to main content
Solved

Execute external program from TASK


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

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Forum|alt.badge.img+17
  • Moderator
  • 761 replies
  • 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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings