how to run a .bat or .cmd file from bash prompt

Oleksandr Gavenko gavenkoa@gmail.com
Fri Sep 16 21:29:00 GMT 2011


16.09.2011 22:10, Robert Perlberg пишет:
> cmd /c batch_file [arguments ...]
>
> This is such an original idea. I wish the Unix shell had something like
> that.
>
I also discover such *cmd* usage in bash:

   cmd <<EOF
   dir
   exit
   EOF

so you can execute any cmd built-in command (as 'ver', 'dir', 'for'),
and easy start any count of .cmd/.bat files.

Work in Windows XP - 7.


--
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



More information about the Cygwin mailing list