[Wine] How convert Linux path to Windows path like "cygpath" does?

KenJackson wineforum-user at winehq.org
Sat May 30 07:27:00 CDT 2009

I'm forced to use Windows at work, so I make very heavy use of Cygwin (http://cygwin.com/), a very wonderful thing.  One way I use it is with this handy little shell script: 
MSO="/cygdrive/c/Program Files/Microsoft Office/OFFICE11"
if [ -n "$1" ]; then
    "$MSO"/WORDVIEW.EXE "$(cygpath -w "$@")" &

Now I have installed Microsoft's free wordview program on my Linux machine under wine and would like to use this script to easily view word documents.

But I need an equivalent to the cygpath command.

How can I automatically convert a Linux path like ~/doc/SomeFile.doc to a Windows path like 

More information about the wine-users mailing list