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: How does one find "cygdrive path" in a Win ".bat" file (was Re: Bug in "startXwin.bat")


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


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