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 Date: Wed, 26 Mar 2003 13:56:32 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Cc: jld AT ecoscentric DOT com Subject: Re: Determining the location of a cygwin installation Message-ID: <20030326185632.GD7391@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com, jld AT ecoscentric DOT com References: <200303261832 DOT 53052 DOT jld AT ecoscentric DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i >> 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. On Wed, Mar 26, 2003 at 06:45:42PM -0000, 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 :) That's the only sure-fire way to work since there is no guarantee that the registry items will be around forever. In fact, I guarantee that they won't be. If you are talking about writing an actual cygwin-linked c program rather than a script then you'd use the cygwin_conv_to_full_win32_path call : http://cygwin.com/cygwin-api/func-cygwin-conv-to-full-win32-path.html cgf -- 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/