This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: VB script error in Cygwin


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.



-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]