I would appreciate your help on the below matter.
I am trying to send email using intouch scada.
I am using the following command:
StartApp "powershell.exe " + par0 + par1 + par2 + par3 + par4 + par5 + par6 + par7 + par8 + par9;
par0 --> is the powershell script path
par1 --> is the email
par2 to par9 are some parameters i would like to send. I checked the power shell script and its working just fine, but when i run the script through intouch it seems that executes a part of the string.
par0 = "PATH_ON_MY_PC/powershell.ps";
par1 = "firstname.lastname@example.org"
par2 = " -par1 12";
par3 = " -par2 10";
par4 = " -par3 test";
par9 = " -par9 9";
I am only getting first parameter and if i change to this:
StartApp "powershell.exe " + par0 + par1 + par3 + par2 + par4 + par5 + par6 + par7 + par8 + par9;
I will only get third parameter.
How can I overcome this limitation?