delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/09/15:40:05

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: Problem executing batch files from the Windows command prompt
Date: Tue, 9 May 2006 15:39:48 -0400
Message-ID: <400BDC416E2A0042AA35DF3919BB8A5123A88F@mail.mtl.proksim.com>
From: "Olivier Langlois" <olanglois AT quazal DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k49Je0KV009907

Hi,

Since I installed cygwin on a PC and I try to execute a bat file from the Windows command prompt (system32\cmd.exe), it does not work as expected.

mkmf.bat is located in C:\tools\bin

environment variable path=C:\tools\bin

From a different directory, if I type:

mkmf

It works fine.
Now if I change the path variable to path=C:\tools\bin;C:\cygwin\bin

and I type

mkmf

I have an error message saying:

Cannot find executable in PATH

and if I type

mkmf.bat

I get the following error message:

Cannot execute /cygdrive/c/tools/bin/mkmf.bat

Can someone explain me what is happening? It is like if when the cygwin bin directory is added to the PATH variable, cygwin would have some kind of hooks on the Windows command prompt. I do not understand what is happening...

Thank you,
Olivier Langlois
http://www.quazal.com
 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


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