delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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-Injected-Via-Gmane: | http://gmane.org/ |
To: | cygwin AT cygwin DOT com |
From: | Andrew DeFaria <ADeFaria AT Salira DOT com> |
Subject: | Re: Determining the location of a Cygwin installation |
Date: | Wed, 26 Mar 2003 11:24:59 -0800 |
Lines: | 64 |
Message-ID: | <3E81FE8B.9060008@Salira.com> |
References: | <200303261832 DOT 53052 DOT jld AT ecoscentric DOT com> <NCEBJJFMCAOKNNABBFIMIEBLDFAA DOT john DOT r DOT morrison AT ntlworld DOT com> <b5stct$gjq$1 AT main DOT gmane DOT org> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT main DOT gmane DOT org |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 |
X-Accept-Language: | en-us, en, ru, zh |
Rolf Campbell wrote: > You mean "cygpath -w -p /bin", because he said "I need to determine > the native path to the directory containing cygwin1.dll" He also said he needed to determine this from "outside the Cygwin environment" and I would think that cygpath is inside the Cygwin environment. Think about it. You're in cmd.exe and you want to tell where Cygwin is installed. How can you execute cygpath without knowing where cygpath is? The only way that would work is if Cygwin's bin path is already in PATH and this is not set by default when Cygwin is installed. Personally I vote for a simple base like registry variable that plainly states where Cygwin was installed. It seems to me to make the most sense to have one globally accessible place where you can find Cygwin's installation path and then you can take it from there. Relying on anything within Cygwin's installation path presupposes that the person knows Cygwin's installation path! But this is just my opinion... > > > John Morrison wrote: > >> You didn't say whether you wanted it for a script or exe, for >> a script... >> >> cygpath -w -p / >> >> works for me :) >> >> J. >> >> >>> -----Original Message----- >>> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf >>> Of John Dallaway >>> Sent: Wednesday, 26 March 2003 6:33 pm >>> To: cygwin AT cygwin DOT com >>> Subject: Determining the location of a Cygwin installation >>> >>> >>> I need to determine the location of an existing Cygwin net >>> installation programatically. More precisely, I need to determine >>> the native path to the directory containing cygwin1.dll from outside >>> the Cygwin environment. I could interrogate the registry for mount >>> points, but in the worst case I would have to look under both >>> HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE for both the "/bin" and "/" >>> mount points. Is there a more robust method? >>> >>> John Dallaway >>> >>> >>> -- >>> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >>> Bug reporting: http://cygwin.com/bugs.html >>> Documentation: http://cygwin.com/docs.html >>> FAQ: http://cygwin.com/faq/ >>> >> >> > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |