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

Reply via email to