Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-Id: <200204101239.g3ACdac05252@star.vcsd.net>
X-Authentication-Warning: star.vcsd.net: mail owned process doing -bs
Content-Type: text/plain;
  charset="iso-8859-1"
From: Dwight Schauer <das@teegra.net>
Reply-To: das@teegra.net
To: <cygwin@cygwin.com>
Subject: Re: getting dos path from cygwin
Date: Wed, 10 Apr 2002 07:41:57 -0500
References: <200204101226.g3ACQAe05183@star.vcsd.net>
In-Reply-To: <200204101226.g3ACQAe05183@star.vcsd.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Use cygpath.

cygpath --help

in your case:

some_dos_command  $(cygpath -w path_to_cygwin_file)
or
some_dos_command  $(cygpath -wa path_to_cygwin_file)
 
The "a" option is to return the absolute path, and not the relative one.

On Wednesday 10 April 2002 07:25, you wrote:
> Greetings,
> I am trying to call link.exe on a lib, but it is in my cygwin path and i
> cannot seem to find a good way to translate my cygwin path into a dos path
> so ms's silly tools can understand it.
>
> any hints?
>
> thanks
> -ian reinhart geiser
> --
> Ian Geiser <geiseri@yahoo.com>
> http://geiseri.myip.org:8080/~geiseri/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

