delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/23/17:41:06

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: SJ <simon DOT jackson AT didata DOT com DOT au>
Subject: VBScript shebang?
Date: Tue, 22 Jun 2004 08:03:01 +1000
Lines: 14
Message-ID: <cb7luo$lbg$1@sea.gmane.org>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: 148.182.36.157
User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)

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


--
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/

- Raw text -


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