This is the mail archive of the
mailing list for the Cygwin project.
Re: running .bat files from bash
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Donal Murtagh <domurtag at yahoo dot co dot uk>
- Cc: cygwin at cygwin dot com
- Date: Wed, 15 Dec 2004 18:45:34 -0500 (EST)
- Subject: Re: running .bat files from bash
- References: <firstname.lastname@example.org>
- Reply-to: cygwin at cygwin dot com
On Wed, 15 Dec 2004, Donal Murtagh wrote:
> I've noticed that if I want to run a .bat file in bash I have to cd to the
> directory it's in first in order for it to run properly
> For example, if I want to run c:\foo\bar.bat I have to use:
> cd /cygdrive/c/foo
> if I try
> it doesn't work properly. It seems that if I attempt the latter, the
> .bat file is launched, but doesn't work properly. The particular .bat
> file I'm running compiles a Java source tree, and when I try to launch
> it via /cygdrive/c/foo/bar.bat, the messages sent to standard output
> suggest it's working fine, but none of the .class files are created.
> Has anyone else come across this?
Nope. I can't reproduce this on my installation...
You could run javac with the -verbose flag (or even -J-verbose) to show
where javac is writing the files...
|\ _,,,---,,_ email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ firstname.lastname@example.org
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html