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 |
From: | "John Morrison" <john DOT r DOT morrison AT ntlworld DOT com> |
To: | "John Dallaway" <jld AT ecoscentric DOT com>, <cygwin AT cygwin DOT com> |
Subject: | RE: Determining the location of a Cygwin installation |
Date: | Wed, 26 Mar 2003 18:45:42 -0000 |
Message-ID: | <NCEBJJFMCAOKNNABBFIMIEBLDFAA.john.r.morrison@ntlworld.com> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
In-Reply-To: | <200303261832.53052.jld@ecoscentric.com> |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
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 |