X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4990CB8D.3050704@tlinx.org>
Date: Mon, 09 Feb 2009 16:34:21 -0800
From: Linda Walsh <cygwin@tlinx.org>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: How does one find "cygdrive path" in a Win ".bat" file  (was Re:  Bug in "startXwin.bat")
References: <4990B031.4050807@tlinx.org> <4990B128.7030004@cygwin.com>
In-Reply-To: <4990B128.7030004@cygwin.com>
X-Stationery: 0.4.8.12
X-Stationery: 0.4.8.12
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Larry Hall (Cygwin X) wrote:
> Linda Walsh wrote:
>> The startxwin.sh script works, but startxwin.bat does not work if
>> your Cygwin installation isn't in the default location.
>>
>> You could use "mount -p" (presuming your cygwin\bin is in your windows 
>> path, as mine is).
>>
>> If not, need to look in the registry:
>> "\HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts 
>> v2\cygdrive prefix"
> 
> No, you don't need to look in the registry.  There's nothing there that
> 'mount' won't tell you.  Forget about the registry.  You'll be better
> off, especially when Cygwin 1.7 is released.
---
	I'm curious -- how does mount find or 'know' the cygdrive path
if it doesn't come from the registry.

	For that matter, how would a windows .bat file find the
'mount.exe' binary if the .bat file doesn't know 'cygdrive path'?


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

