How convert Linux path to Windows path like "cygpath" does?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?






[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux