This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to run a .bat or .cmd file from bash prompt
- From: Robert Perlberg <perl at creativegroup dot tv>
- To: "J.V." <jvsrvcs at gmail dot com>
- Cc: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 16 Sep 2011 15:10:38 -0400
- Subject: Re: how to run a .bat or .cmd file from bash prompt
- References: <4E739D87.4060806@gmail.com>
cmd /c batch_file [arguments ...]
This is such an original idea. I wish the Unix shell had something
like that.
-c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -c -
c -c -c -c -c -c -c -c -c
On Sep 16, 2011, at 3:03 PM, J.V. wrote:
To run a .bat or .cmd file, I can do this:
$cmd
C:>mybat.bat or C:\>mycmd.cmd
In other words, I have to type two commands (one to get to the shell,
and another to run the .bat or .cmd file).
What I want is to write a shell script (bash), that will cd to a
directory, enter the dos cmd prompt and execute a .bat file and then
return to my bash shell.
I do not know if this is possible, have tried many things, but nothing
works.
thanks
J.V.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple