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]

RE: Bat files in Bash


>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@cygnus.com" with one line of text: "help".


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