* VB script error in Cygwin
@ 2012-07-25 7:25 Eric Padriquez
2012-07-25 11:06 ` Csaba Raduly
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Eric Padriquez @ 2012-07-25 7:25 UTC (permalink / raw)
To: cygwin
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>"
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: VB script error in Cygwin
2012-07-25 7:25 VB script error in Cygwin Eric Padriquez
@ 2012-07-25 11:06 ` Csaba Raduly
2012-07-25 15:07 ` Andrew DeFaria
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Csaba Raduly @ 2012-07-25 11:06 UTC (permalink / raw)
To: Eric Padriquez, cygwin
Hi Eric,
On Wed, Jul 25, 2012 at 9: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
As a first idea, check the differences in the path between the command
prompt and the Cygwin shell.
( %PATH% vs $PATH )
Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: VB script error in Cygwin
2012-07-25 7:25 VB script error in Cygwin Eric Padriquez
2012-07-25 11:06 ` Csaba Raduly
@ 2012-07-25 15:07 ` Andrew DeFaria
2012-07-25 18:55 ` Aaron Schneider
2012-07-26 14:25 ` Keith Christian
3 siblings, 0 replies; 6+ messages in thread
From: Andrew DeFaria @ 2012-07-25 15:07 UTC (permalink / raw)
To: 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: VB script error in Cygwin
2012-07-25 7:25 VB script error in Cygwin Eric Padriquez
2012-07-25 11:06 ` Csaba Raduly
2012-07-25 15:07 ` Andrew DeFaria
@ 2012-07-25 18:55 ` Aaron Schneider
2012-07-26 14:25 ` Keith Christian
3 siblings, 0 replies; 6+ messages in thread
From: Aaron Schneider @ 2012-07-25 18:55 UTC (permalink / raw)
To: cygwin
On 25/07/2012 9:25, 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>"
>
Could you attach a copy of the files replacing sensitive data?
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: VB script error in Cygwin
2012-07-25 7:25 VB script error in Cygwin Eric Padriquez
` (2 preceding siblings ...)
2012-07-25 18:55 ` Aaron Schneider
@ 2012-07-26 14:25 ` Keith Christian
2012-07-26 14:43 ` Andrew DeFaria
3 siblings, 1 reply; 6+ messages in thread
From: Keith Christian @ 2012-07-26 14:25 UTC (permalink / raw)
To: Eric Padriquez, cygwin
I usually write a CMD.EXE script that in turn, runs cscript and its *.vbs file.
Example:
The following lines are a cmd "batch" file called bar.cmd
@echo on
echo.This is "bar.cmd," a CMD.EXE script, which will be invoked by Cygwin
echo.Run a vbscript called "foo.vbs"
cscript foo.vbs
echo."foo.vbs" is complete
echo.Done, now exiting "bar.cmd"
exit
** First ** ---- run bar.cmd within a CMD.EXE window to be sure it and
foo.vbs are working properly outside of Cygwin.
** Second** ---- from within Cygwin's bash (or other) shell, run bar.cmd:
$ cmd /c bar.cmd
Watch for output or results from "foo.vbs" during the run.
========== Keith
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: VB script error in Cygwin
2012-07-26 14:25 ` Keith Christian
@ 2012-07-26 14:43 ` Andrew DeFaria
0 siblings, 0 replies; 6+ messages in thread
From: Andrew DeFaria @ 2012-07-26 14:43 UTC (permalink / raw)
To: cygwin
On 07/26/2012 07:24 AM, Keith Christian wrote:
> I usually write a CMD.EXE script that in turn, runs cscript and its *.vbs file.
>
> Example:
>
> The following lines are a cmd "batch" file called bar.cmd
>
>
> @echo on
> echo.This is "bar.cmd," a CMD.EXE script, which will be invoked by Cygwin
> echo.Run a vbscript called "foo.vbs"
> cscript foo.vbs
> echo."foo.vbs" is complete
> echo.Done, now exiting "bar.cmd"
> exit
>
>
> ** First ** ---- run bar.cmd within a CMD.EXE window to be sure it and
> foo.vbs are working properly outside of Cygwin.
>
> ** Second** ---- from within Cygwin's bash (or other) shell, run bar.cmd:
>
> $ cmd /c bar.cmd
>
> Watch for output or results from "foo.vbs" during the run.
>
> ========== Keith
>
There's no need to interject a needless additional process of cmd.exe.
You can call cscript directly without a problem:
Neptune:cat HelloWorld.vbs
option explicit
sub display (msg)
wscript.echo msg
end sub
display "Hello World from VBS!"
Neptune:cscript HelloWorld.vbs
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Hello World from VBS!
Neptune:
--
Andrew DeFaria <http://defaria.com>
I put instant coffee in my microwave oven and almost went back in time.
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-07-26 14:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-25 7:25 VB script error in Cygwin Eric Padriquez
2012-07-25 11:06 ` Csaba Raduly
2012-07-25 15:07 ` Andrew DeFaria
2012-07-25 18:55 ` Aaron Schneider
2012-07-26 14:25 ` Keith Christian
2012-07-26 14:43 ` Andrew DeFaria
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).