Get Wine path of file

2020-07-18 06:21发布

问题:

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.

回答1:

The answer is winepath -w foofile



标签: filepath wine