delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/09/21:00:32

From: jdennis AT ultranet DOT com ("John R. Dennis")
Subject: how do you run .bat files under bash?
9 May 1997 21:00:32 -0700 :
Sender: mail AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199705092038.QAA00074.cygnus.gnu-win32@lucius.ultra.net>
Original-To: gnu-win32 AT cygnus DOT com
Mime-Version: 1.0
Original-Sender: owner-gnu-win32 AT cygnus DOT com

I'm stumped. From within a bash shell how do I execute a .bat script?

BTW, I don't want to have to do anything verbose like invoke cmd.com
with the name of the script, I just want to be able to type the name
of the script on the command line and/or be able to invoke it from
within another script (or via a "system" call).

It seems to me that the convention of #!/path/to/script/interpretor
as the first line won't work if the script is invoked from a normal
win32 environment. Basically what I'm looking for is the ability to
invoke scripts from any environment without regard to the environment
I'm in. How do I do this?

John

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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