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: VBScript shebang?


On Tue, 22 Jun 2004, SJ wrote:

> Hello,
>
>  From time to time, I like use a Windows script file (VBS, JS) with
> CScript/WSH. Is it possible to execute a script as a command from the
> Cygwin shell without having to specify the 'interpreter' (CScript)? This
> would then operate like a Perl or BASH script.
>
> I've tried using a 'shebang' approach like "#!<path>cscript" but the
> CScript interpreter chokes. If I comment the shebang I get an error from
> the shell.
>
> Thanks
> Simon

You need to make sure the interpreter gets the Win32 path to its argument,
not POSIX.  Search the archives for "ActivePerl shebang".
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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


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