delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,TW_YG,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4F7B9F99.4030508@cs.umass.edu> |
Date: | Tue, 03 Apr 2012 21:10:49 -0400 |
From: | Eliot Moss <moss AT cs DOT umass DOT edu> |
Reply-To: | moss AT cs DOT umass DOT edu |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 |
MIME-Version: | 1.0 |
To: | raf <raf AT raf DOT org> |
CC: | cygwin <cygwin AT cygwin DOT com> |
Subject: | Re: Windows7 broke DRIVELETTER:/path on cmdline of non-cygwin exe |
References: | <20120403055503 DOT GA6387 AT raf DOT org> <4F7AD7F3 DOT 4030208 AT cs DOT umass DOT edu> <20120404003419 DOT GA16890 AT raf DOT org> |
In-Reply-To: | <20120404003419.GA16890@raf.org> |
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 |
On 4/3/2012 8:34 PM, raf wrote: > Eliot Moss wrote: > >> My suggestion would be to read up on the cygpath utility >> program and use it to convert cygwin paths to ones suitable >> for a non-cygwin program, etc. I launch non-cygwin programs >> all the time on Windows 7 that way ... >> >> Regards -- Eliot Moss > > Hi, > > Thanks but I'm using a non-cygwin path already. > I am not using a cygwin path that needs to be > converted to anything. Except you wrote F:/blah which is *not* a Windows path. F:\blah is ... Hence my suggestion. If it's of any help, here is what I do for launching Word on a file from cygwin; similar functions work for Excel, Acrobat, etc.: In my .bashrc file: ... alias word=winword ... function winword { local ARG [ -n "$1" ] && { ARG="$(cygpath -wa "$1")"; shift; } command winword ${ARG:+"${ARG}"} "$@" & } ... The rest of the setup is: 1) ~/bin is on my PATH 2) ~/bin/winword is a cygwin symbolic link (ln -s) to /c/Program Files (x86)/Microsoft Office/Office12/WINWORD.EXE This does the right thing even for a path that starts /cygdrive/c/... etc. Eliot Moss -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |