2008年11月17日 星期一

for Foxit Reader, convert linux path to windows-style path

#!/bin/bash
# Purpose: To convert Linux-style filename to Windows-style to pass as an argument to wine when starting Foxit Reader
Filename="z:"${1//\//\\}
#assuming you use the default installation folder for Foxit in Wine
App='eval wine "C:\Program Files\foxitreader\FoxitReader.exe" "'$Filename'"'
$App

沒有留言: