Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Rolf Campbell Subject: Re: Determining the location of a Cygwin installation Date: Wed, 26 Mar 2003 14:00:47 -0500 Lines: 43 Message-ID: References: <200303261832 DOT 53052 DOT jld AT ecoscentric DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT main DOT gmane DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en In-Reply-To: You mean "cygpath -w -p /bin", because he said "I need to determine the native path to the directory containing cygwin1.dll" 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/