This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Determining the location of a Cygwin installation

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

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:



Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]