Search code examples
filepathwine

Get Wine path of file


Is it possible to get the Wine path to a file on the current OS?

Example:

wine-get-path ~/foo.txt # Outputs: Z:\\Users\Tyilo\foo.txt
wine-get-path ~/.wine/drive_c/windows/explorer.exe # Output: C:\\windows\\explorer.exe

where wine-get-path would be the function I need.


Solution

  • The answer is winepath -w foofile