www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/05/26/11:36:09

From: EPA AT datcon DOT co DOT uk (Edward Avis)
Subject: RE: Bat files in Bash
26 May 1998 11:36:09 -0700 :
Message-ID: <c=GB%a=TMAILUK%p=DCNET%l=EXCHANGE2-980526100722Z-1761.cygnus.gnu-win32@smtp.datcon.co.uk>
To: "'Kent DOT Henneuse AT lutris DOT com'" <Kent DOT Henneuse AT lutris DOT com>,
"'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>

>Is there a way to execute DOS batch files from the bash shell? 

On NT you can do

bash$ cmd /c foo.bat

but on 95 you have to use command.com, which is a DOS program, which
bash won't handle very well.

You could get an "alternative" command processor, such as 4NT, or even a
native port of bash, and do:

bash$ 4nt /c foo.bat

or

bash$ native-sh command /c foo.bat

Convoluted, but it might just work... YMMV.

--
Ed Avis <http://members.tripod.com/~mave>
-
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