This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: running .bat files in a sh script
- To: Christoph Kukulies <kuku at gilberto dot physik dot rwth-aachen dot de>
- Subject: Re: running .bat files in a sh script
- From: Jason Tishler <Jason dot Tishler at dothill dot com>
- Date: Thu, 14 Sep 2000 08:53:56 -0400
- Cc: cygwin at sourceware dot cygnus dot com
- Organization: Dot Hill Systems Corp.
- References: <200009140832.KAA77012@gilberto.physik.rwth-aachen.de>
On Thu, Sep 14, 2000 at 10:32:36AM +0200, Christoph Kukulies wrote:
> I'm having the following problem:
>
> I'm getting command or path not found when I say in a sh script
>
> /d/somedir/l.bat
>
> while when sitting in the directory /d/somedir and execute
> a shell script containing the line
>
> l.bat
>
> it works.
Try the following:
$COMSPEC /c $(cygpath -w /d/somedir/l.bat)
Jason
--
Jason Tishler
Director, Software Engineering Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation Fax: +1 (732) 264-8798
82 Bethany Road, Suite 7 Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com