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

Barry Kelly
Fri Nov 14 17:15:00 GMT 2008

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


your/windows/program "$(cygpath -w "/your/path/here")"

-- Barry


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list