This is the mail archive of the cygwin 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]
Other format: [Raw text]

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


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


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