delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/26/15:40:59

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
Message-ID: <3E82101C.45E8CBE7@isg.de>
Date: Wed, 26 Mar 2003 21:39:56 +0100
From: Tino Lange <Tino DOT Lange AT isg DOT de>
Organization: IS Innovative Software AG
X-Accept-Language: de,en,fr
MIME-Version: 1.0
To: Andrew DeFaria <ADeFaria AT Salira DOT com>, jld AT ecoscentric DOT com
Cc: cygwin AT cygwin DOT com
Subject: Re: Determining the location of a Cygwin installation
References: <200303261832 DOT 53052 DOT jld AT ecoscentric DOT com> <NCEBJJFMCAOKNNABBFIMIEBLDFAA DOT john DOT r DOT morrison AT ntlworld DOT com> <b5stct$gjq$1 AT main DOT gmane DOT org> <3E81FE8B DOT 9060008 AT Salira DOT com>

> He also said he needed to determine this from "outside the Cygwin
> environment" and I would think that cygpath is inside the Cygwin
> environment. Think about it. You're in cmd.exe and you want to tell
> where Cygwin is installed. How can you execute cygpath without knowing
> where cygpath is? The only way that would work is if Cygwin's bin path
> is already in PATH and this is not set by default when Cygwin is installed.

This is not true! There's a trick:
At least under >= Windows 2000 you can just put 'cygpath.exe' (and its
path) in your so called "ApplicationPaths".
This is a Registry location for several utils you can just call by name
- no more needed.
Have a look at your:
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths"
When you start such an application it don't need to be in the path of
the machine.

Solution:
Just put 'cygpath.exe' in your Application path - then you're able to
use it from everywhere on your machine.
So you can find the CYGWIN root with "cygpath -w /".

You might also want to have a look at this great tool from Gergory Braun
to easily maintain your AppPaths Applications:
http://www.gregorybraun.com/AppPaths.html

Cheers,

Tino

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019