Running VBScript from tm1
Posted: Tue Mar 18, 2014 10:45 am
Hi
I want know the correct method to pass the parameter to vbScript,Currently i am using following code to send parameter to .vbs file which is created to sent mail.
arguments = 'CScript D:\Mail\SendMailOther.vbs '|sSMTPSvr |' ' | sSender | ' "'|pRecipient|'" "'|pSubject|'" "'| pBody | '"' ;
EXECUTECOMMAND(arguments ,1);
When i rum the vbs file after hard-coding the parameters it works but when i try to send the parameters from TI it doesn't give any error message but my mail is not get triggered.
I am using following code in my Vb Script:
SMTPServer = WScript.Arguments(0)
Mail_from = WScript.Arguments(1)
Thanks & Regards
Vaibhav Late.
I want know the correct method to pass the parameter to vbScript,Currently i am using following code to send parameter to .vbs file which is created to sent mail.
arguments = 'CScript D:\Mail\SendMailOther.vbs '|sSMTPSvr |' ' | sSender | ' "'|pRecipient|'" "'|pSubject|'" "'| pBody | '"' ;
EXECUTECOMMAND(arguments ,1);
When i rum the vbs file after hard-coding the parameters it works but when i try to send the parameters from TI it doesn't give any error message but my mail is not get triggered.
I am using following code in my Vb Script:
SMTPServer = WScript.Arguments(0)
Mail_from = WScript.Arguments(1)
Thanks & Regards
Vaibhav Late.