www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/10/04:02:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: How does one find "cygdrive path" in a Win ".bat" file (was Re: Bug in "startXwin.bat")
Date: Tue, 10 Feb 2009 10:01:38 +0100
Lines: 31
Message-ID: <gmrfq6$2mn$1@ger.gmane.org>
References: <4990B031 DOT 4050807 AT tlinx DOT org> <4990B128 DOT 7030004 AT cygwin DOT com> <4990CB8D DOT 3050704 AT tlinx DOT org>
Mime-Version: 1.0
User-Agent: MicroPlanet-Gravity/2.71.9
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

* Linda Walsh (Mon, 09 Feb 2009 16:34:21 -0800)
> 
> 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.

/etc/fstab
 
> 	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.

Thorsten


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019