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

2011-09-17 Thread Thorsten Kampe
* Robert Perlberg (Fri, 16 Sep 2011 15:10:38 -0400) > cmd /c batch_file [arguments ...] > > This is such an original idea. I wish the Unix shell had something > like that. It does. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documen

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

2011-09-17 Thread Thorsten Kampe
* J.V. (Fri, 16 Sep 2011 13:03:35 -0600) > 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 scr

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

2011-09-16 Thread Oleksandr Gavenko
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

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

2011-09-16 Thread Robert Perlberg
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 t

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

2011-09-16 Thread J.V.
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