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 Content-Type: text/plain; charset="iso-8859-1" From: John Dallaway Subject: Determining the location of a Cygwin installation Date: Wed, 26 Mar 2003 18:32:52 +0000 User-Agent: KMail/1.4.3 Organization: eCosCentric Limited To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200303261832.53052.jld@ecoscentric.com> 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/