This is the mail archive of the cygwin 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: find the path for cygwin root from windows script


Hello,

* On Thu, Jun 17, 2004 at 11:12:00AM +0200, bertrand marquis <bertrand_marquis@yahoo.fr> wrote:
>    i need to be able to find where cygwin is install from a .bat script 
> under windows to run cygwin programs.
> Does anyone has a solution to do that automaticaly ?

    cygpath -m /

However, this solution requires that cygwin directories are visible from
your $PATH. In other words, you won't really need to know where they are
installed.

-- 
Luc Hermitte

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


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