X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: Barry Kelly To: cygwin AT cygwin DOT 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 DOT post AT talk DOT nabble DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/