running .bat file in cygwin

Greg Chicares
Wed Jul 11 16:59:00 GMT 2012

On 2012-07-11 16:26Z, emon wrote:
> Can anyone suggest me how I can run this .bat file at cygwin or refer me to
> a site.

Since you've decided to start using Cygwin, the best advice
is probably to write it as a shell script instead. There are
many tutorials on the web.

But if you really want to use a batch file...make sure it's
executable, then just run it--for example:

/tmp[0]$cat >eraseme.bat <<\EOF
echo Hello from batch file
/tmp[0]$chmod +x eraseme.bat

C:\cygwin-1_7\tmp>echo Hello from batch file
Hello from batch file

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list