KenJackson
2009-May-30 12:27 UTC
[Wine] How convert Linux path to Windows path like "cygpath" does?
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: Code: #!/bin/sh MSO="/cygdrive/c/Program Files/Microsoft Office/OFFICE11" if [ -n "$1" ]; then "$MSO"/WORDVIEW.EXE "$(cygpath -w "$@")" & else "$MSO"/WORDVIEW.EXE & fi 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 H:\\doc\\SomeFile.doc?
rein
2009-May-30 13:44 UTC
[Wine] Re: How convert Linux path to Windows path like "cygpath&qu
KenJackson wrote:> > How can I automatically convert a Linux path like ~/doc/SomeFile.doc to a Windows path like > H:\\doc\\SomeFile.doc?That program is called winepath, see "winepath --help"