Page 1 of 1

Can't call an exe File over TI Process

Posted: Mon Mar 12, 2012 3:01 pm
by Christian Koenig
Dear all,
I hope that someone her can help me. Follwoing PRoblem i have. I want to start an .exe File over TurboINtegrator Process. I use following Syntax for it.
ExecuteCommand('C:\Programme\MDRApps\SMTPSEND\smtpsend.exe', 0);
If I run this Process i get the answer "Proccess completed successfully" but nothing happens.?

The next thing is, if i find a way to start the smtpsend.ece file i want to attach the right error . Here i complete sample i found in internet based on another .exe File

ExecuteCommand('"C:\Program Files (x86)\Serwise AG\Notification Message_v2.1.4\SendNotificationMessage.exe" -lld "D:\TM1 Log\Development 1" -c "Error in server development 2 process ' | prc | '" -m "Error in process ' | name | ' !" -p1 ' | NumberToString(ret), 1);

In final in

My Process is now as follow:
################################################# (modified by KOC, activated by KOC)
#*** Load_DIM_All_3_0_C_FAP_Attributes
#*** Jump to Process DIM_All_3_0_C_FAP_Attributes

prc = 'Load_DIM_All_3_0_C_FAP_Attributes';
name = 'Load_DIM_All_3_0_C_FAP_Attributes';
ret = ExecuteProcess(prc, 'pCube', vBasisCube);

# if(ret <> ProcessExitNormal());
# ExecuteCommand('"C:\Program Files (x86)\Serwise AG\Notification Message_v2.1.4\SendNotificationMessage.exe" -lld "D:\TM1 Log\Development 1" -c "Error in server development 2 process ' | prc | '" -m "Error in process ' | name | ' !" -p1 ' | NumberToString(ret), 1);
# endif;


Hope for help and many thanks in advanced

Chris

Re: Can't call an exe File over TI Process

Posted: Mon Mar 12, 2012 3:37 pm
by John Hammond
think you have to use cmd and then the string you want processed

An alternative is to write the commands to a .bat file and run that with executecommand

Re: Can't call an exe File over TI Process

Posted: Mon Mar 12, 2012 4:13 pm
by qml
Christian Koenig wrote:If I run this Process i get the answer "Proccess completed successfully" but nothing happens.?
And what exactly is it that you would expect to happen? Is this program not expecting any parameters? Is it meant to produce some result? In any way you will not see any window popping up, because this program runs using the service account under which the TM1 server is running, not your account.

My guess the program is found and executed ok, then it either hangs there waiting for input or terminates due to lack thereof.

Re: Can't call an exe File over TI Process

Posted: Mon Mar 12, 2012 4:26 pm
by Steve Vincent
your syntax for running a program in the TI is fine, but what qml has said is where you need to concentrate. am i correct that program sends email? if so it most certainly will need parameters of some sort. you have to imagine you are running it as the server account, easiest way to do that (if you can) is log in to the server as that account and use the cmd box to understand what code you need to get it doing what you want. once you are sure that is correct it should be easy to transfer that to the TI.

Re: Can't call an exe File over TI Process

Posted: Mon Mar 12, 2012 4:30 pm
by Christian Koenig
thanks and i will chekc the posts from you soon
Chris