X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <1337356203.42647.YahooMailClassic@web28609.mail.ukl.yahoo.com> References: <1337356203 DOT 42647 DOT YahooMailClassic AT web28609 DOT mail DOT ukl DOT yahoo DOT com> Date: Fri, 18 May 2012 12:26:51 -0400 Message-ID: Subject: Re: Making Unix like paths work when using java program from Cygwin From: Earnie Boyd To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 q4IGRN01013297 On Fri, May 18, 2012 at 11:50 AM, Marilo wrote: > > Still use /cygdrive/c in the shell script. > It is possible but the OP stated that he mounted the directory to /ABC/XYZ. > I wasn't suggesting using /cygdrive/c in his java program.  His java program is not so much a cygwin issue, as his shell script is.  If his java program has file paths that need amending, then since you point out that a cygwin program could be used to help convert the paths in his java program, then, I see, the java program could be relevant to cygwin in that sense. Note java wouldn't understand "c:\blah\a.txt"   it could have "c:\\blah\a.txt" though.  A search and replace might be easier though, possibly using regex. > The issue is conversion of POSIX to WINDOWS paths for the "native" program. The OP needs to give the native java a Windows path but it is getting the POSIX path and not able to find it. > How do you get cygpath to do make /v into c:\v ? > $ cygpath -aw "/v" > C:\cygwin\v > $ cygpath -aw "/cygdrive/c/v" or mount c:/v as /v. > and not that i'm suggesting it but out of curiousity, can cygpath take a file and convert any linux paths in it to windows paths? how? > > and if it can't then i'm not sure its use for this. http://cygwin.com/faq/faq-nochunks.html#faq.using.converting-paths -- Earnie -- https://sites.google.com/site/earnieboyd -- 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