Re: Winepath on Mac

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

 



assuming you have Wine installed to /usr/local ... change things here as needed. This will make a winepathOSX script to give the answer you want.

type in...

Code:
sudo touch /usr/local/bin/winepathOSX
sudo chmod 755 /usr/local/bin/winepathOSX
sudo nano /usr/local/bin/winepathOSX



in the text editor that comes up...
copy and paste in this code


Code:
#!/bin/bash
TEMPVAR=$(/usr/local/bin/winepath "$@")
echo ${TEMPVAR#${TEMPVAR%:*}:}



hit Ctrl X and answer Y to save.

from that point on if you type in as a command...

winepathOSX z:\Applications\folder\whatever.txt

it would come up as
/Applications/folder/whatever.txt






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

  Powered by Linux