X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 	tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <499177A6.4030303@byu.net>
Date: Tue, 10 Feb 2009 05:48:38 -0700
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 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> <4990CB8D.3050704@tlinx.org> <gmrfq6$2mn$1@ger.gmane.org>
In-Reply-To: <gmrfq6$2mn$1@ger.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Thorsten Kampe on 2/10/2009 2:01 AM:
>> 	For that matter, how would a windows .bat file find the
>> 'mount.exe' binary if the .bat file doesn't know 'cygdrive path'?
> 
> Mount is not a Cygwin application (meaning it doesn't have to know where 
> cygwin1.dll is). So the bat file simply has to specify the path to 
> mount.exe.

Wrong.  Mount _is_ a cygwin app.  But provided that /bin/mount and
/bin/cygwin1.dll are installed in the same directory (which they should
be), finding mount means you have found cygwin1.dll and thus have found /.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmRd6UACgkQ84KuGfSFAYDUjACgkMp3o9bAJdkm/zICWAR4r+GN
q/cAn1vHo3yrpj5h1mn7kx2ZEXHfyuBh
=ql/z
-----END PGP SIGNATURE-----

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

