X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
From: Barry Kelly <bkelly.ie@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Is it possible to convert from dos to unix path and back?
Date: Fri, 14 Nov 2008 16:57:51 +0000
Message-ID: <5gbrh49t5mp5gj6oea2k20gefv8fbm10lh@4ax.com>
References: <20503937.post@talk.nabble.com>
In-Reply-To: <20503937.post@talk.nabble.com>
X-Mailer: Forte Agent 4.2/32.1117
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id mAEGwpwJ024360

R. Lewis wrote:

> Some of the commands we "launch" from a cygwin bash shell only understand
> the Dos path convention since they are native window's executables.  Is
> there a "conversion" command I can call to go from a Unix path to a Dos path
> and back?
> 
> Example:
>      Cygwin path: /cygdrive/c/'Program Files'/Prod123/something.dat   
> 
>      After converting it becomes -> Dos path: c:\Program
> Files\Prod123\something.dat

cygpath

your/windows/program "$(cygpath -w "/your/path/here")"

-- Barry

-- 
http://barrkel.blogspot.com/

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


