CYGWIN Installer should setup a root environment variable

Chris Walters chris.walters@pobox.com
Wed Nov 6 17:31:00 GMT 2002


Igor Pechtchanski wrote:
> On Wed, 6 Nov 2002, Chris Walters wrote:
>> I have experienced many times situations which I would like to refer to
>> CYGWIN's root directory from a bat script. The most generic solution
>> would be to utilise an environment variable such as CYGROOT or (as in
>> startxwin.bat) CYGWIN_ROOT to refer to the absolute windows pathname
>> (e.g. D:\cygwin). This would free us from making assumptions if it was
>> setup during the installation utility. The environment variable should
>> be setup for system if installed for "All Users".
> 
> `cygpath -w /`

This is fine, but how do I use the result in a DOS bat script? I can't 
find any way to execute this command and store the result into an 
envrionment variable or use it to use it in the arguments for a separate 
command.

-- 
Chris Walters
+-------------------------------------------------------+
|  ,-_|\   Chris Walters      <chris.walters@pobox.com> |
| /     \                                               |
| \_,-._/                                               |
|      v                                                |
+-------------------------------------------------------+


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



More information about the Cygwin mailing list