25 Jul 2012 17:06
Re: VB script error in Cygwin
Andrew DeFaria <Andrew <at> DeFaria.com>
2012-07-25 15:06:49 GMT
2012-07-25 15:06:49 GMT
On 07/25/2012 12:25 AM, Eric Padriquez wrote:
> Hi, we have a VB script that is working fine when run in command prompt.
> However we encounter when we run the VB script in Cygwin by using shell
> script to invoke VB. We've tried to use cscript and cygstart but also
> encounter error. Thanks!
> Error: attach_sendmail.vbs(52, 1) CDO.Configuration.1: The specified
> module could not be found.
> Code: 8007007E
> Commands tried:
> cscript.exe <Path>/attach_sendmail.vbs "${EMAIL_SUBJECT}" "${EMAIL_TO}"
"<Path>/email_msg.3592.mail" "<Attached file>"
> cygstart <Path>/attach_sendmail.vbs "${EMAIL_SUBJECT}" "${EMAIL_TO}"
"<Path>/email_msg.3592.mail" "<Attached file>"
>
Try executing a VB script that's in your CWD that does something very,
very simple like echos "Hello World". Does that work? If so start adding
complexity until it breaks.
cscript should work for you. I believe I have an alias vbs="cscript
/nologo".
--
--
Andrew DeFaria <http://defaria.com>
Whenever I feel the need to exercise, I lie down till the feeling goes
away.
RSS Feed