This is the mail archive of the
mailing list for the Cygwin project.
Re: VB script error in 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.There's no need to interject a needless additional process of cmd.exe.
You can call cscript directly without a problem:
The following lines are a cmd "batch" file called bar.cmd
echo.This is "bar.cmd," a CMD.EXE script, which will be invoked by Cygwin
echo.Run a vbscript called "foo.vbs"
echo."foo.vbs" is complete
echo.Done, now exiting "bar.cmd"
** 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.
sub display (msg)
display "Hello World from VBS!"
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Hello World from VBS!
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple