X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Shankar Unni Subject: Re: Where is cygwin bin directory? Date: Tue, 22 Nov 2005 14:29:58 -0800 Lines: 21 Message-ID: References: <4383616A DOT 4050608 AT student DOT lu DOT se> <20051122183415 DOT GB23653 AT trixie DOT casa DOT cgf DOT cx> <438395AC DOT 20903 AT student DOT lu DOT se> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051025 Thunderbird/1.5 Mnenhy/0.7.2.0 In-Reply-To: <438395AC.20903@student.lu.se> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 Lennart Borgman wrote: > I want to start Cygwin from within an application. It is in a package > that will be distributed to many computers and I have no idea at all if > Cygwin is installed and in that case where it is installed. Cygwin is not an "application" that you "start", so this makes no sense at all. That's like saying "I want to start MFC from within ". What exactly are you starting? Bash (the shell)? Some other tool ported to Cygwin? If you simply want to determine where Cygwin is installed, from a non-Cygwin application (without assuming that it's already in the PATH) then you'll have to look at the registry. Look for the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (assuming you installed Cygwin in the "official" manner). The value is the path to the bin directory. -- 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/