This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How does one find "cygdrive path" in a Win ".bat" file (was Re: Bug in "startXwin.bat")
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 10 Feb 2009 05:48:38 -0700
- 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>
-----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/