Code: Select all
#!/bin/sh
MSO="/cygdrive/c/Program Files/Microsoft Office/OFFICE11"
if [ -n "$1" ]; then
"$MSO"/WORDVIEW.EXE "$(cygpath -w "$@")" &
else
"$MSO"/WORDVIEW.EXE &
fi
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?