delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/10/08:40:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-Id: <200204101239.g3ACdac05252@star.vcsd.net>
X-Authentication-Warning: star.vcsd.net: mail owned process doing -bs
From: Dwight Schauer <das AT teegra DOT net>
Reply-To: das AT teegra DOT net
To: <cygwin AT cygwin DOT com>
Subject: Re: getting dos path from cygwin
Date: Wed, 10 Apr 2002 07:41:57 -0500
References: <200204101226 DOT g3ACQAe05183 AT star DOT vcsd DOT net>
In-Reply-To: <200204101226.g3ACQAe05183@star.vcsd.net>
MIME-Version: 1.0

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 AT yahoo DOT 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/

- Raw text -


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