delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/25/11:07:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: VB script error in Cygwin
Date: Wed, 25 Jul 2012 08:06:49 -0700
Lines: 22
Message-ID: <jup22a$nb2$1@dough.gmane.org>
References: <1343201120 DOT 87444 DOT YahooMailNeo AT web162104 DOT mail DOT bf1 DOT yahoo DOT com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
In-Reply-To: <1343201120.87444.YahooMailNeo@web162104.mail.bf1.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019