delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/14/08:56:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 14 Sep 2000 08:53:56 -0400
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: running .bat files in a sh script
Message-ID: <20000914085356.B1120@DP>
References: <200009140832 DOT KAA77012 AT gilberto DOT physik DOT rwth-aachen DOT de>
Mime-Version: 1.0
User-Agent: Mutt/1.2.4i
In-Reply-To: <200009140832.KAA77012@gilberto.physik.rwth-aachen.de>; from kuku@gilberto.physik.rwth-aachen.de on Thu, Sep 14, 2000 at 10:32:36AM +0200
Organization: Dot Hill Systems Corp.

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 DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019