This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Executing .bat files from bash


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@sourceware.cygnus.com


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