delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/07/11:56:54

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Subject: Executing .bat files from bash
To: cygwin AT sourceware DOT cygnus DOT com
X-Mailer: Lotus Notes Release 5.0 March 30, 1999
Message-ID: <OFEE0B2429.19D78C4A-ON0625689B.005C1C9D@trilogy.com>
From: Dan DOT Karipides AT trilogy DOT com
Date: Tue, 7 Mar 2000 10:55:36 -0600
X-MIMETrack: Serialize by Router on Mailman/Trilogy(Release 5.0.2b |December 16, 1999) at
03/07/2000 11:00:13 AM
MIME-Version: 1.0

I've searched the archives for this and can only find very old articles
that don't
directly answer my question.

I've noticed in the current b20.1 release, that I can run a bat file simply
by
typing it's name.  I haven't seen the need to type "cmd /c <file>.bat",
which
was suggested in the older archived mail.  All I need to type is <file>.bat
and the bat file will execute.  However, I'm wondering if I can set an
environment variable or a registry key or something that will eliminate
the need to type the ".bat" extension.  Basically, .exe files don't need
it,
.sh files don't need it -- anyway that .bat can be made to not need the
extension to execute?  I'll even patch bash if I have to.

(Background info.  Here at work, I have to use hundreds of batch files a
day, I don't haven any choice in that.  It's too cumbersome to have to
type the .bat each time.  It's so bad, in fact that I've been forced to use
the
NT command shell.  *shudder*).

Thanks in advance,

-Dan
-----
Integration Consultant
Trilogy Software




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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