This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is it possible to convert from dos to unix path and back?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]