| www.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 |
| Date: | Wed, 26 Mar 2003 13:56:32 -0500 |
| From: | Christopher Faylor <cgf AT redhat DOT com> |
| 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> <NCEBJJFMCAOKNNABBFIMIEBLDFAA DOT john DOT r DOT morrison AT ntlworld DOT com> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <NCEBJJFMCAOKNNABBFIMIEBLDFAA.john.r.morrison@ntlworld.com> |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |